on 02-17-2014 12:14 PM
Hi,
Is it possible to make the Line Chart dashed using CSS or using any other approach?
Thanks,
Anders
Hi Anders,
you can use CSS to get a dashed line, for example:
svg g.v-m-plot g.v-datalines path.v-lines.v-morphable-line {stroke-dasharray: 5,5;}
some useful sites:
stroke-dasharray property (Internet Explorer)
Regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anders,
yes it is possible by adjusting the css selectors with :nth-child(). Just use a css selector which targets either your first or second line (if you have two lines), so you would use one of the following css lines:
svg g.v-m-plot g.v-datalines g.v-axis1 path:nth-child(1).v-lines.v-morphable-line {stroke-dasharray: 5,5;}
svg g.v-m-plot g.v-datalines g.v-axis1 path:nth-child(2).v-lines.v-morphable-line {stroke-dasharray: 2,8;}
Here a screenshot which shows what the css selectors are selecting (this is not the only way to write the selectors, just one way):
My chart type is: "Line" and after applying both CSS definitions, for both Lines, the chart looks like this now (use only one css from my example instead of both to make only one line dashed):
Regards,
David
Hi,
I can not find any CSS Option , If you find any please share.
But there is Workaround ( Lots of Donkey Work Kind & Not reasonable ).
add grid 20 Col & 1 row with fix Width & Height .
Add Blank Text in Each Grid (Where Line Appear).
Set following CSS Style for each text in it.
border-right:thick double #ff0000;(as per requirement set color as background color of line chart ).
Opacity:0%;
If your showing minor axis you will have to set text in grid accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.