Unplanned
Last Updated: 30 Apr 2020 09:13 by ADMIN
Casper
Created on: 29 Apr 2020 16:28
Category: Charts
Type: Feature Request
2
Expose a parameter that changes the background color of the plot area.
I would like to be able to change the background color of the plot are by passing a CSS color to a parameter.
1 comment
ADMIN
Svetoslav Dimitrov
Posted on: 30 Apr 2020 09:13

Hello,

As a workaround, you can use some CSS rules to target the plot area and change it's color. If there are multiple Charts on the same view their plot areas will all be colored the same way.

CSS:

<style>
    .k-chart svg > g > path:nth-child(2) { 
        fill: green !important;
        fill-opacity: 1 !important;
    }
</style>

Regards,
Svetoslav Dimitrov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.