1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    172
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default highlight line chart?

    highlight line chart?


    With a column chart I can highlight a specific data point using something like this:

    Code:
    series.highlightItem(items[i]);
    but I would like to do the same thing with a line chart.

    currently if I use the method above the entire line is highlighted I would like to highlight the data point only like on a hover. is this possible?

  2. #2
    Sencha User
    Join Date
    May 2010
    Posts
    172
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default


    ok it looks like the highlight is working but The radius setting is lost and it makes it not very obvious. anyways to keep the radius setting with the following function?

    Code:
    series = Ext.getCmp('myChart').series.get(0);
    series.highlight = true;
    series.unHighlightItem();
    series.cleanHighlights();
    
    
    items = series.items;
    series.highlightItem(items[3]);
     series.highlight = false;

Tags for this Thread