Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
Set chart axis title same colour as series
posted

I want to set the titles for my axes to be the same colour as the series. I seem to be able to do this by setting the title and series colours manually (e.g. = "red"), but I want the chart to use its automatic colour selection.

Thanks

Parents
  • 16310
    Suggested Answer
    Offline posted

    Hello Nick,

    Thank you for posting in the Infragistics community !

    I investigated this but it does not seem possible to match the colors automatically. Howeever in order to avoid the need to manually set the same colors to every axis label, series brush and so on you can change the default values in the corresponding css classes.

    .ui-horizontal-axis-labels - Class applying font color, margin, and vertical alignment to the labels of horizontal axes. // you can find this class in the infragistics.ui.chart.css file

    .ui-chart-palette-n - Class applying background-color and border-color to the n-th series in the chart. As many palettes can be defined as neccessary.  // you can find this class in the infragistics.theme.css file

    Please let me know if you have further questions on the matter, I will be glad to help.

Reply Children