score:0
i don't have enough detail to know if your problem comes from there but the syntax of your code is incorrect.
you should have :
function drawchart(placeholder, values1, labels1) {
var plot = $.plot(placeholder,
[{
data: values1,
label: label1,
lines: {
show: true,
linewidth: 2,
fill: true,
},
points: {
show: true,
linewidth: 3,
fill: true,
fillcolor: '#fafafa'
}
}]
});
}
Source: stackoverflow.com
Related Query
- chartjs line graph points with different color
- Chartjs Line Color Between Two Points
- ChartJS - Line Chart with different size datasets
- ChartJs line chart - display permanent icon above some data points with text on hover
- Chartjs line graph dataset with offset
- Different color for line segments in ChartJS
- Display two line graphs with data starting at different points
- How to combine lines with different starting points in chartjs
- Bootstrap modal not working with chartjs line graph
- How to reduce the number of points shown on line chartjs chart with a large dataset?
- ChartJS - How to change color of some data points in graph
- How to properly feed data to ChartJS with different number of x(labels) and y(data) points
- chartjs display data in one bar line with 3 different data sets in 3 different colors
- how to set the color of all points in a line graph to the same in chart.js?
- Trouble with setting background color for Line chart at Chartjs version 3.5.1
- Different color for each bar in a bar graph in ChartJS and VueJS
- How do I use ChartJS with a background color in the space between two line charts?
- ChartJS set color of Line chart points depending on Y Axis
- Different color for each bar in a bar chart; ChartJS
- ChartJS Line Charts - remove color underneath lines
- Chartjs change grid line color
- ChartJS - Different color per data point
- Chart.js - Plot line graph with X , Y coordinates
- Can't change color line with chart.js
- Display line chart with connected dots using chartJS
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- ChartJS Line Graph - Multiple Lines, Show one Value on Tooltip
- Chart.js Mixed Bar and Line chart with different scales
- chart.js Line chart with different background colors for each section
- Chart.js - Line charts with different colors for each border lines
More Query from same tag
- Chart.js: show tooltip color square only for certain row
- Create Chart.js pie chart data from PHP
- Charting with chartjs, can't get it working correctly
- How can I update my ChartJS in real time (It's works only when I zoom-in and zoom-out)
- How to Create Chart.JS Bar Graph with Min, Max & Average
- Can i set dynamic step size on stepped line chart in chart.js?
- Building a 24h visualisation with chartjs
- ChartJS and JSON result: Cannot set property 'fillColor' of undefined
- Chart.js Legend Padding-Left
- angular-chart.js, how to change colours labels
- How can I skip data/labels in a period of time in Chartjs?
- Show Labels on Pie pieces instead of Data values Chart.js
- chartjs + Angular6 is not showing charts or any error
- Chart content not getting displayed in ionic
- updating a chart in chart.JS using a dropdown button
- Dynamic colours in chartJS based on entries in the array
- Chart.JS Vertical Line with Moment.JS Horizontal Axis
- Chart.js graph with just two cordinates
- Chart Js Negative Scale
- How to reorganize data to display how many times a string appears in an array object?
- Multiple Chart.js charts on a single page, from 1 function but different data
- chartjs: How to create single outer border for stacked barchart
- Count the duplicates in a string array using React JS
- Show multiple data in a single data in chart.js
- Why doesn't my donut chart, created with Chart.js, appear?
- Chart.js tooltip hover customization for mixed chart
- How to custom legend with react-chartjs-2
- Chart.js displays dates in x axis that are not present in my dataset
- Does ChartJS supports Jquery 3.4.1
- Changing data when click button in chart.js