score:29
Accepted answer
this is because, you are using deprecated properties (used in chartjs 1.x) for setting colors. use the following properties instead (which is applicable for chartjs 2.7) :
datasets: [{
label: 'dique las maderas',
fill: false,
bordercolor: "#bae755",
borderdash: [5, 5],
backgroundcolor: "#e755ba",
pointbackgroundcolor: "#55bae7",
pointbordercolor: "#55bae7",
pointhoverbackgroundcolor: "#55bae7",
pointhoverbordercolor: "#55bae7",
data: valor
}]
Source: stackoverflow.com
Related Query
- Can't change color line with chart.js
- How to add area with break on line chart with fill color
- Change Axis Line color in Chart created using chart.js
- change stroke line color in chart according to datasets in react native
- How to change background color of labels in line chart from chart.js?
- With Chart js, I am trying to color every 7th vertical (x axis) grid line (representing each week beginning visually)
- Trouble with setting background color for Line chart at Chartjs version 3.5.1
- Line chart Change background color of shaded region on hover (Chartjs)
- How to change bar color on a angular-chart and chart js bar graph with multiple datasets?
- Change Vertical Line and Color bar chart in bar chart.js
- Chart Js Change Label orientation on x-Axis for Line Charts
- Chartjs change grid line color
- How can I create a horizontal scrolling Chart.js line chart with a locked y axis?
- line chart with {x, y} point data displays only 2 values
- Chart.js line chart set background color
- Display line chart with connected dots using chartJS
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- Chart.js - line chart with two yAxis: "TypeError: yScale is undefined"
- chartjs datalabels change font and color of text displaying inside pie chart
- How to display Line Chart dataset point labels with Chart.js?
- Chart.js Mixed Bar and Line chart with different scales
- chart.js Line chart with different background colors for each section
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
- Unable to parse color in line chart (angular-chart.js)
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- Chart.js: Line chart with partial dashed line
- Obtain max value of y axis of line chart rendered with Chart.js
- ChartJS - Line Chart with different size datasets
- Line chart with large number of labels on X axis
- angular-chart.js bar chart with 100% opacity color
More Query from same tag
- How to install Chart.js in Laravel? ("Uncaught ReferenceError: Chart is not defined")
- Chartjs-plugin: How to add a different color to each label?
- Dynamic rendering of chart with chartjs
- ChartJs is not working in angular 4 with no errors
- Chartjs: Align first tick in first index of axis
- Need to customize graph behaviour
- What kind of graph could I use to achieve this with ChartJS (or similar)?
- Error: "category" is not a registered scale
- Chart.js remove label from legend for if dataset values
- Chart.js label color
- ChartJS onclick fill area (Radar Chart)
- Get data from sql database in chartjs using codeigniter
- Chart.js: only show labels on x-axis for data points
- How to parse data to graph in MVC
- Is there any way to get y of specific x which not belongs to the dataset in Chart.js graph?
- Chartjs background color multiple Dataset
- How to dynamically set ChartJs line chart width based on dataset size?
- Chart.js (Radar Chart) different scaleLineColor for each scaleLine
- Add a click event to the bar chart of chartjs
- How do you label points in a scatterChart built using ng2-chart
- Chart.js add icons like <i class='icon-peso'></i> to y-axis labels
- how to creat a dynamic datasets and new dynamic multi yAxes
- how to draw line graph with line animation from left to right using chartjs?
- Chart.js : scaleStartValue from highest to lowest
- Change font size and font color in Chartjs Angular 5
- Javascript and chart.js, how to add euro currency to y label
- Chart.js - PieChart defined background color for specific dataset element
- Refreshing the image of a chart using chart.js
- chart annotations not showing in Angular 2
- Chart.js line chart tooltip shows wrong label when line doesn't start at first label