chartjs-plugin-datasource-prometheus icon indicating copy to clipboard operation
chartjs-plugin-datasource-prometheus copied to clipboard

borderColor is only creating black color

Open msaiko239 opened this issue 11 months ago • 0 comments

When configuring a chart borderColor I have found that is only changes the color to black. I have tried rgb settings, color name and CSS colors.

I have also tried to color option many other places without it changing the color.

Image

var myChart3 = new Chart(document.getElementById('myChart3'), {
  type: 'line',
  plugins: [ChartDatasourcePrometheusPlugin],
          options: {
          backgroundColor: 'green',
            plugins: {
              color: false,
              title: {
                display: true,
                text: 'myText',
               },
              'datasource-prometheus': {
                borderColor: 'white',
                prometheus: {
                  endpoint: "testmyhttp",
                  baseURL: "/api/v1",
                },
                query: 'myquery',
                timeRange: {
                  type: 'relative',

                  // from 12 hours ago to now
                  start: -12 * 60 * 60 * 1000,
                  end: 0,
                },
              },
            },
          },
});

msaiko239 avatar Feb 26 '25 03:02 msaiko239