Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the caption color #4

Open
GoogleCodeExporter opened this issue May 14, 2015 · 1 comment
Open

Changing the caption color #4

GoogleCodeExporter opened this issue May 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

The default color of the Caption (text beside the graph) is by default gray. 
I want to use the sparklines on a gray background which makes it hardly 
readable.

Unfortunately i can't override the default color because it seems to be set 
directly by Javascript. When debugging with Firebug see the item 
"element.style" overriding my custom CSS. 
Resulting color is always #CCC :-(

element.style {
  color: #CCC;
}

.spark .v-sparklinecaption, .v-sparklinevalue {
  color: black;
  text-transform: none;
  text-shadow: 0px 1px 1px white;
  text-transform: none;
}

It would be nice if the plugin had a method such as setCaptionColor() - same as 
the other colors of min, max and value are set.

Thank a lot for this excellent plugin!!

Original issue reported on code.google.com by mojom...@googlemail.com on 3 Dec 2011 at 11:16

@GoogleCodeExporter
Copy link
Author

This can be done by removing the line (#96)
this.caption.getElement().getStyle().setColor(pathColor);

The text color can then be set in the CSS instead.

Is there a maven pom.xml for this project that can be used to build it? It has 
lots of dependencies that I am unsure of.

Original comment by Dominic....@googlemail.com on 9 Sep 2012 at 1:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant