Jump to content
JChartFX Community

sergio.nader

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by sergio.nader

  1. Hello, all. This is my first post and have to say I'm impressed by jChartFX. Awesome library! I'm building a drill-down solution and need to get an ID for each bar the user clicks. I learnt how to get the index of the bar (evt.point), what is not of much use for me, unless I make a table (session, for instance) to relate the data array (that comes from a json string). So, lets say that the json will return somethig like this (here, just one record): { store: "2114", ID: "2", Sales: 196.5, Cost: 101.44, Year: "2013" }, The graph will show, say, X = store and Y = Sales. The ID 2 represents all the record and when user clicks on that bar, I want to get the ID. As I said, I know how to the the index of the bar (and also the label, in this case, 2114). The only thing I could thing of was to concatenate the store and ID fields wiht a known separator in order to get the ID. Something like store: "2114|2" However this solution is far from being elegant, not to mention that the ID would appear in the graph. Does anyone know a better way to handle it? The entire solution I'm buinding depends on this feature, as it will have multple levels fof drill-down. Thanks in advance, Sergio
×
×
  • Create New...