jQWidgets Forums

jQuery UI Widgets Forums Chart Questions on Chart Legend

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 7 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Questions on Chart Legend #100441

    George S
    Participant

    Hello,

    I have a combination graph, I have two series as a stacked columns, and 3 series as lines. In the legend:
    1). Can I draw a box around the legend?
    2). Can I have the legend show the column series as boxes, but the line series as lines? i.e. right now, all 5 series are showing up IN THE LEGEND as boxes, even though in the graph, 2 are columns, and 3 are lines. I would like the Legend to follow that pattern, showing the colors for the all 5 series, but 2 as boxes, and 3 as lines.

    Questions on Chart Legend #100453

    Martin
    Participant

    Hello George,

    Unfortunately, we do not have such functionality.
    You can try customizing the chart’s legend using css.

    This example changes the size of the legend’s first column serie box, but the selector will depend on how many columns you have.

    #svgChart > g :nth-child(12) :nth-child(1){
       width: 3px;
       height: 15px;         
    }

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.