Changing the basic CSS of Line chart

Comments

5 comments

  • Avatar
    Andrew Block

    For changing background:

    widget.on('ready', function(se, ev){

    $(element).css('background-color','#000000'); //changes the widget's background

    })

    0
    Comment actions Permalink
  • Avatar
    Antti Wolk

    How can I point the changes to a single class?

    0
    Comment actions Permalink
  • Avatar
    Andrew Block

    Antti is this for a chart? Could you provide me a visual of what you want me to help change


    Thanks

    0
    Comment actions Permalink
  • Avatar
    Raja Munagala

    I tried the same code, but it is not rendering the background-color to specified color. It is working for Indicator but not for Charts.

    0
    Comment actions Permalink
  • Avatar
    Andrew Block

    Try this:

    widget.on('ready', function(se, ev){
    $('.widget-body' ,element).css('fill','#feffd4');
    $(element).css('background-color','#feffd4');
    })
    0
    Comment actions Permalink

Please sign in to leave a comment.