PS: Here's an example of how I'm currently styling. If there was an option to turn off style attributes in the span tags completely, that would be really helpful -- maybe a "CSS only" style mode to avoid all the !important tags.
codepen.io/sitm/pen/KKPvv
Conversation
(Actually, you will probably still need the style tags for position information but perhaps an option to turn off all styling in the style tags so the styling can be done in CSS via class selectors).
1
Replying to
I can add that. The RGraph.text() function is given a "tag" option each time it's called (eg scale, labels etc) so I can update the function to use that as a CSS class as well - eg rgraph-text-scale
2
1
So the CSS accessor would be: div#cvs_rgraph_domtext_wrapper span.rgraph_text_scale { ... }
1
1
Replying to
That looks perfect. So that should allow selecting the title by class name, xAxis text, etc.
2
Replying to
Ok I added it (haven't fully tested it yet) and, at first glance, it seems to be working so you'll be able to do this:
span.rgraph_accessible_text {
color: red !important;
}
span.rgraph_accessible_text_title {
color: red !important;
font-size: 16pt !important;
}
etc
1
1
Replying to
Hi Jason, I've released version 5.1 of RGraph so feel free to download and try the new CSS classes (they're mentioned in the changelog too: rgraph.net/changelog.html). As always - be cautious when upgrading though - always allow for some sort of rollback ability!
1
1

