Results 1 to 3 of 3

Thread: Custom Text in Graph Legend

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    32

    Default Answered: Custom Text in Graph Legend

    How to set custom text to Graph Legend.

    label.jpg

  2. You can see this in this example:

    http://www.sencha.com/examples/#ExamplePlace:mixedchart

    Code:
          final ScatterSeries<Data> scatter = new ScatterSeries<Data>();      scatter.setYAxisPosition(Position.RIGHT);
          scatter.setYField(dataAccess.data2());
          Sprite marker = Primitives.circle(0, 0, 6);
          marker.setFill(RGB.RED);
          scatter.setMarkerConfig(marker);
          scatter.setLegendTitle("Scatter");
          chart.addSeries(scatter);

  3. #2
    Sencha Premium Member feelinforyou's Avatar
    Join Date
    Dec 2012
    Posts
    100
    Answers
    5

    Default

    You can see this in this example:

    http://www.sencha.com/examples/#ExamplePlace:mixedchart

    Code:
          final ScatterSeries<Data> scatter = new ScatterSeries<Data>();      scatter.setYAxisPosition(Position.RIGHT);
          scatter.setYField(dataAccess.data2());
          Sprite marker = Primitives.circle(0, 0, 6);
          marker.setFill(RGB.RED);
          scatter.setMarkerConfig(marker);
          scatter.setLegendTitle("Scatter");
          chart.addSeries(scatter);

  4. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    32

    Default

    thanks , for the fast response.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •