-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hello everyone
i m working on a project using ZK charts Using MVC approach, what i want to do exactly is to change the background or to add a guideline ( with diffrent color) to a specific column for example the one with index 3 : where is what i do want to achieve
here is my chart :
and here is what i want with diffrent color in column with index 3
or with a guide line ( green color)
is this possible in Zk ? and thx
Hi, here is the sample code to add a guide line.
XAxis xaxis = chart.getXAxis();
PlotLine line = new PlotLine();
line.setColor("#00ff00"); //green
line.setDashStyle("Solid");
line.setWidth(4);
line.setValue(3); //map to x-axis value, starts from 0
xaxis.addPlotLine(line);
Asked: 2014-07-04 14:58:28 +0800
Seen: 9 times
Last updated: Jul 07 '14