Highcharts - Change legend index order

后端 未结 3 429
我在风中等你
我在风中等你 2020-12-31 04:42

When creating a chart with stacked columns using highcharts my series are added by default from top to bottom - the first added series is placed on top. I\'d like to alter t

3条回答
  •  悲哀的现实
    2020-12-31 05:45

    Not sure it its correct way. But using CSS also you can change the order of your legends.

    In my case i have angular component legends & following HTML in it which will generate dynamically.


    legend 1
    legend 2
    legend 3

    After applying some CSS it will reverse the order of legends.

    :host ::ng-deep .saving-chat .legend {
        display:flex;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    

提交回复
热议问题