# Changes to Bar Graph Report Color Using CSS Are Not Sticking

**URL:** <https://forums.knack.com/t/changes-to-bar-graph-report-color-using-css-are-not-sticking/8792>\
**Category:** API & Custom Code\
**Created:** [May 14, 2021, 1:09am UTC](https://forums.knack.com/t/changes-to-bar-graph-report-color-using-css-are-not-sticking/8792 "2021-05-14T01:09:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattB87768](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@MattB87768](https://forums.knack.com/u/MattB87768)\
**Post date:** [May 14, 2021, 1:09am UTC](https://forums.knack.com/t/changes-to-bar-graph-report-color-using-css-are-not-sticking/8792/1 "2021-05-14T01:09:43Z")

</div>

Hi there!

&nbsp;

I'm using the CSS code below to change the colors of a bar graph on a report. When viewing in the app, the changes only appear when I initially log in or if I refresh the page.

&nbsp;

If I navigate to another page in the app, and then back to the page with the report, the bar graph once again displays in the default light blue color.

&nbsp;

The only time I can see the changes to the colors is if I navigate to the page with the report and manually refresh the browser, or when I initially log in.

&nbsp;

Any idea what's going on?

&nbsp;

I've cleared the browser cache, cookies, etc., and tried incognito mode and even another computer that has never been used to access the app.

&nbsp;

Thank you in advance!

&nbsp;

&nbsp;

#kn-report-view\_8-1 #highcharts-0 \> svg \> g \> g \> rect:nth-child(1) {

fill:ForestGreen;

}
  

#kn-report-view\_8-1 #highcharts-0 \> svg \> g \> g \> rect:nth-child(2) {

fill:Gold;

}
  

#kn-report-view\_8-1 #highcharts-0 \> svg \> g \> g \> rect:nth-child(3) {

fill:MediumPurple;

}
