Alright, I get it.  Seems like there should be a way that you could specify any 
one of them, without having to make a separate method for each index (by 
passing the index as well as the color).  But, at the moment I can't think of 
how it would look.  But, if you're still in need of this, I will look into 
it....

~Roger

-----Original Message-----
From: bentoucour [mailto:[email protected]] 
Sent: Monday, January 13, 2014 7:44 AM
To: [email protected]
Subject: Re: Chart Styles

Hi Roger,

I'm fairly new here. I haven't raised a JIRA issue for it.

Yes, I was using the JFreeChart wrapper library. Especially:
biz.ixnay.pivot.charts.skin.jfree.LineChartViewSkin.java.

To solve one of my problems, I added a "firstSeriesColor" parameter with 
getter/setter and these 2 lines in the createChart method:

  CategoryItemRenderer renderer = plot.getRenderer();
  renderer.setSeriesPaint(0, firstSeriesColor);

Then, I paint my charts from my main window class by calling:
myChartView.setStyles(map)

I know it's kind of a quick and dirty fix but that's all I could think of for 
the time I had for this. 

To be clear, I'm trying to implement a dynamic chart solution for a monitoring 
tool (similar to what JConsole has). I don't have real need for fancy styles, 
only chart colors.

Thanks,
Ben



--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/Chart-Styles-tp3047996p4022825.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Reply via email to