Results 1 to 4 of 4

Thread: How to change the color of the lines in line chart

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    10

    Default How to change the color of the lines in line chart

    Hi Team,
    I was able to change the color of the marker and appearance , but not the color of the lines.
    Kindly suggest how to achieve it..

    Below is the code which i use
    style:
    {
    fill: "#76CCE3",
    stroke: '#003300',
    'stroke-width': 20,
    fill: '#789',
    opacity: 0.8
    },
    showMarkers: true,
    fill : false,
    markerConfig:
    {
    type: 'circle',
    radius: 5,
    stroke:'#76CCE3',
    fill: 'white'
    }

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    10

    Default

    I got it, using the below

    style: {
    fill: '#76CCE3',
    stroke: '#76CCE3',
    'stroke-width': 3
    },
    Thanks,

  3. #3
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,102
    Answers
    113

    Default

    using style can enable changing the color of the lines but be aware that this does not change the color shown in the legend (if you are displaying it). I am looking for a way to change it so that the color of the line along with its display in the legend both change. Does anyone know how to do this?

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    10

    Default

    yeah farish,
    you are right..
    will find out a way or some override to achieve it..
    kindly share , if you could find it.

Posting Permissions

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