More than 1 color in a single series - URGENT

63 views
Skip to first unread message

sanju

unread,
Oct 20, 2011, 12:27:03 AM10/20/11
to jqplot-users
Hi,
I am trying to draw a graph(simple line chart) which has a pre-defined
threshold value. Graph before value should be in one color and above
the value in different color. I tried using two different series, but
when a new data item arrives, i cannot place in any of existing
series, as it will give me a wrong graph.(It needs to be like stock
value graphs, when +ve ,some color, and -ve some other color and the
graph will be zigzag).
So, is there any way single series can support multiple colors based
on plot co-ordinates.
If Jqplot doesn't help... please suggest any other frameworks that
does the trick.

Saanz

unread,
Oct 20, 2011, 1:24:10 AM10/20/11
to jqplot-users
Hello! I am having the same problem. I tried with jquery sparklines
where 2 colors can be produced depending upon the threshold value, but
there are various problems in that:
1. the graph is 'discrete', i.e., vertical lines are drawn only at the
points mentioned, that the total graph is not a continous line.
2. the labelling of the x-axes and y-axes cannot be done using this.
3. more then 2 colors is not supported in discrete.

So, this cannot be a solution. Can anyone please throw more light into
how to use different colors in a same line in a graph, as stated by
the above author.
Reply all
Reply to author
Forward
0 new messages