Standardcategoryitemlabelgenerator customize

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sajidbigler
Posts: 4
Joined: Wed Jun 17, 2015 8:24 am
antibot: No, of course not.

Standardcategoryitemlabelgenerator customize

Post by sajidbigler » Wed May 04, 2016 2:00 pm

Dear friends,

From below given link i m just trying to return

My name instead of

dataset.getRowKey(series).tostring();

I gave "sajid"

In overridden method generateitemlabel

In short i want to pass another dataset to show label instead of chart/plot dataset


http://read.pudn.com/downloads83/source ... java__.htm

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Standardcategoryitemlabelgenerator customize

Post by paradoxoff » Wed May 04, 2016 4:02 pm

sajidbigler wrote: From below given link i m just trying to return
My name instead of dataset.getRowKey(series).tostring();
Then simply use "Sajid" as return value. Where is the problem?
sajidbigler wrote: In short i want to pass another dataset to show label instead of chart/plot dataset
The dataset parameter is provided automagically, and its is always a dataset of the plot. Changeing that would be a major hack.
Maybe you can describe what you really want to achieve.

Locked