question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A way to change the color for axis and ticks

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[x] support request => Please do not submit support request here

I’m trying to implement ngx-charts with a dark background, and I was unable to find a way to change the text color for ticks and axis.

I tried changing with CSS but it is not working.

Is there a way to change that colors?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

22reactions
ghostcommented, Nov 10, 2017

in angular dont forget to go deeper in sass using ::ng-deep

::ng-deep .ngx-charts { 
    text{
        fill: #fff!important; 
    }
}
6reactions
Klerithcommented, Dec 4, 2019

Simplest way

<ngx-charts-bar-horizontal
      [results]="results"
      [scheme]="colorScheme"
      [results]="single"
      [gradient]="gradient"
      [xAxis]="showXAxis"
      [yAxis]="showYAxis"
      [legend]="showLegend"
      [showXAxisLabel]="showXAxisLabel"
      [showYAxisLabel]="showYAxisLabel"
      [xAxisLabel]="xAxisLabel"
      [yAxisLabel]="yAxisLabel"
      (select)="onSelect($event)"
      style="fill: grey;">   <----------------------- HERE
    </ngx-charts-bar-horizontal> 
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the color of the axis, ticks and labels for a plot ...
How to change the color of the axis, ticks and labels for a plot in matplotlib ; import pandas as ; import seaborn...
Read more >
How to change the axis ticks color in base R plot?
To change the axis ticks color in base R plot, we can use axis function after creating the plot. For example if we...
Read more >
How do you change the color of axis lines, labels, and titles?
Preferences > Styles. Frame Color controls the axis line and the tick marks. You'll also see preferences for setting the color of the...
Read more >
Change Secod Axis Color And Tick Label Colors - MathWorks
set (hleg1,'Location','NorthEast', 'Color', 'none', 'Box', 'off');. The right y-axis, tick marks and tick mark labels are green. I can't figure out how to...
Read more >
How to change the font, axis and tick color in pgfplots - TeX
Regarding the axis lines (I assume that's what you meant), add the colour of your choice (and any other options) to the axis...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found