0

customise specific column in ZK charts

asked 2014-07-04 14:58:28 +0800

elmetni gravatar image elmetni
145 7

updated 2014-07-04 15:10:36 +0800

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 :

normal chart

and here is what i want with diffrent color in column with index 3 diffrent color

or with a guide line ( green color)

with guideLine

is this possible in Zk ? and thx

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-07 02:48:16 +0800

vincentjian gravatar image vincentjian
2245 6

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);
link publish delete flag offensive edit

Comments

it works thx , i addValue(Long) instand of inTeger , thank you so much

elmetni ( 2014-07-07 21:47:06 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-07-04 14:58:28 +0800

Seen: 9 times

Last updated: Jul 07 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More