Welcome Guest Search | Active Topics |

Line graph series, multiple colors
AaronD
#1 Posted : Monday, September 9, 2013 1:31:30 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/28/2013(UTC)
Posts: 6

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello,

Is it possible to have a line graph where a series has multiple colors?
For instance, on a graph I have, the y-axis is numeric and the x-axis is time based.
If I had a graph that had a point for every hour of the day, times before 10 AM would represented by green lines, times after 10 AM and before 2 PM would be yellow, and times after 2 PM would be red.

These different sections do need to be part of the same series.

Any help is appreciated.
Dragan
#2 Posted : Tuesday, September 10, 2013 5:33:56 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

You can split the values into 2 series. You can make breaks into the series with:
http://www.jqchart.com/jquery/chart/ChartTypes/LineChartNullHandling

and use custom legend to set just only one series into the legend:
http://www.jqchart.com/jquery/chart/ChartFeatures/CustomLegend
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.084 seconds.