score:0
Accepted answer
It is possible to set point: { radius: 1 }
for one data value.
var ctx = document.getElementById('chartJSContainer').getContext('2d');
var barChartData = {
labels: ['1 Aug'],
datasets: [{
label: 'Sales',
borderWidth: 0,
data: [10],
borderWidth: 3
}]
};
var myBar = new Chart(ctx, {
type: 'line',
data: barChartData,
options: {
elements: {
line: {
tension: 0.5
},
point: {
radius: 1
}
}
}
});
Source: stackoverflow.com
Related Query
- ChartJS datasets with one data value
- Multiple datasets with one data value chartjs
- chartjs display data in one bar line with 3 different data sets in 3 different colors
- Insert value into a ChartJS with different data label
- ChartJS with React: Only one value showing on time chart
- Chartjs random colors for each part of pie chart with data dynamically from database
- ChartJS - Draw chart with label by month, data by day
- Show bar with zero value in ChartJs v2
- Chartjs linechart with only one point - how to center
- ChartJS Line Graph - Multiple Lines, Show one Value on Tooltip
- Updating chartJS with dynamic data
- ChartJS - Line Chart with different size datasets
- Chartjs - data format for bar chart with multi-level x-axes
- Draw two plots using chartjs over one another with transparency
- ChartJs line chart - display permanent icon above some data points with text on hover
- Chartjs : data labels getting overlapped in smaller datasets using chartjs-plugin-datalabels
- How to remove bars for those bars with zero value in Chartjs bar chart?
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Angular chart how to show the legend data value by default along with legend name
- How to create chartjs chart with data from database C#
- Graph streaming real-time data with react and chartjs
- How can I load multiple Chartjs charts with different data on the same page?
- Chartjs not working with d3 from csv source
- ChartJS update chart with multiple datasets
- How to display chart using Chartjs with JSON data in Laravel
- ChartJs - Round borders on a doughnut chart with multiple datasets
- How to create a custom tooltip for chartJS graph with data in JSON array in JavaScript?
- How to set the chartjs bar graph scale to the highest value in the result data
- Show dynamic data with dynamic colours in chartjs
- How to plot Firebase data with Chartjs in angular
More Query from same tag
- Datalabels plugin chartjs showing '[object]' instead of value
- How to Remove axis Lines from chart in chart js
- How can I add padding between tick labels?
- How to add unused data background to bar in chart js
- ChartJS - Help me custom tooltip
- Change Radius/Point size of Legend Points in chart.js when usePointStyle is true
- How to remove transparency from images downloaded in Chart.js
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- Can't figure out why the values in my objects are changing
- Chart.js / Google Charts and JSON
- Using Chart.js - Creating Legend for Doughnut Chart
- Chart.js: Is it possible to get the label of a dataset in a stacked bargraph on clicking it?
- Chart.js Show Dollar Amount On Left Y And Percent Amount On Right Y
- Can I add a callback function to the legend while keeping the original functionality?
- Parsing error: Unexpected token, expected ";" line 54 in .map function
- Automatic update a ChartJs with SQL
- How to update chart when state changes in vue?
- combo bar line chart with multiple grouped/stacked datasets
- Chart.JS removing data stuck in loop
- Chart.js multiple series with same scale
- Chartjs Custom Legend with Time on Y-axis
- Chartjs: How to create padding between ticks and scale label
- Typescript types for chartjs-adapter-date-fns
- ChartJs - set background color of the space between ticks
- How to display data from database into line graph using php and mysql?
- Chartjs - tooltip - different corner radius
- How can I sort, insert in between and update full dataset in chartjs?
- Tick label overlaps axis label
- i want display chart based on selected charts using chartJS
- ChartJS: Show default tooltip onclick