• Stuart Jones
    May 26, 2016 at 1:42 pm #1938

    Hello,

    I have been building charts using SPARK UI coach views. So far I have played with the Donut and Pie charts and they work well, especially when I figured out how to use a Configuration option to supply the data series. I see that there is an ‘on Click’ event available. Is there a way to figure out where on a chart I clicked? For example, my pie chart shows distribution of activity across US States – 1 pie segment for each included state. Is there a way to capture which state/pie segment was clicked on?

    Thanks

    Stuart Jones

    SPARK Support
    May 26, 2016 at 3:19 pm #1945

    Hi Stuart,

    Quick question, what exactly are you trying to accomplish when clicking on a pie segment. Are you trying to just see what “State” is associated with that section or are you trying to do something with the selected data.

    -Isaiah

    Stuart Jones
    May 27, 2016 at 7:05 am #1949

    Hello Isaiah,

    My first thought is that I would use the information on which chart segment was selected to affect some other coach view on the page. Let’s suppose, for example, that I have a pie chart (with states) and a Table CV, one of whose columns is the state. I would like to search (filter) the table based on the pie segment that I click on and only show rows for that state. That’s just one example. If I can get the information then there’s probably lotsa other things that I might use this for in subsequent projects.

    Now, it may be that I am touching on the dimensional analysis capabilities of the chart, though clearly not using the full capabilities. If that’s the case, then i will need to go read up on that. I just wondered if there is some value that’s early usable to tell me where I clicked.

    Thanks

    Stuart…

    SPARK Support
    May 27, 2016 at 10:32 am #1951

    Stuart:

    As far as I can tell there is no public method/property that gives us this data.  I will comb thru the private methods to see if I can find something.

    John

    jmac
    May 27, 2016 at 12:44 pm #1954

    Stuart:

    I knew I had done this, but I used a private property.  I will lobby for a method that will return the information.  The data that I have is this:

    l<span class=”name”>abel</span><span class=”object-properties-section-separator”>:</span><span class=”value object-value-string”>”Category 3″
    </span><span class=”name”>value</span><span class=”object-properties-section-separator”>:</span><span class=”value object-value-number”>23</span>

    This gives you the category you clicked on and it’s value.

     

    Stuart Jones
    June 8, 2016 at 6:16 am #2082

    Hello,

    I just downloaded SPARK 4.4.0.1 EE on BPM 8.5.7. I tried out the new getSelectedDataPoint() method that’s now available for chart controls. It does exactly what I needed, addressing my need documented above. (It also got me wondering for a how to reset a Table and I found the clearSearch() method.)

    Thanks for being so responsive!

    Stuart…

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search