Skip to content

borderColor is only creating black colorΒ #51

@msaiko239

Description

@msaiko239

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,
                },
              },
            },
          },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions