score:0
Using version 3 of chart.js you can easily configure this with the borderRadius
property. At the time of writing this answer you will need to install the next
branch of ng2-charts
since its in its 7'th release candidate for using v3 of chart.js
var options = {
type: 'bar',
data: {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: 'pink',
borderRadius: Number.MAX_VALUE,
borderSkipped: false,
}]
},
options: {}
}
var ctx = document.getElementById('chartJSContainer').getContext('2d');
new Chart(ctx, options);
<body>
<canvas id="chartJSContainer" width="600" height="400"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.6.0/chart.js"></script>
</body>
Source: stackoverflow.com
Related Query
- Border radius for the bar chart in ChartJS
- Grouping the object by key for Chartjs bar chart
- Chartjs with Vue, Bar Chart Border Radius not working
- Issue with chartjs linear gradient for the mixed bar chart in ReactJS is not calculated for each individual Bars
- ChartJs bar chart - keep bars left instead of equally spread across the width
- Chartjs - data format for bar chart with multi-level x-axes
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- PrimeNg bar chart how to show a label for the y-axis
- ChartJS bar chart fixed width for dynamic data sets
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- How to use set the color for each bar in a bar chart using chartjs?
- ChartJS bar chart - trigger hover even when the cursor is outside of the bar
- Display Bar chart values in the graph - ChartJS
- Set fixed label size for grouped bar chart in angular Chartjs
- Linear x axis for bar chart chartjs
- How to show the chartjs bar chart data values labels as text?
- Chartjs : Can I overwrite bar value on hover for every bar chart
- ChartJS not showing data for time series bar chart
- How make border radius for chart area chart.js?
- ChartJS - would like to create a mixed chart with horizontal Bar and a dot to represent the answer from the current user
- How to change the position of the tooltip for the Bar type chart in Chart.Js
- ChartJS vertical bar chart - measure percentage of the data in each column based on a specified max
- Display ellipsis for null or empty values in the bar chart using Chart.js
- ChartJS fails to render horizontal bar chart for timeseries data
- subcategories for each bar in multibar chart using chartjs
- chartjs bar chart align the legend to left position
- Angular 4: Different color for bar in bar chart dynamically using ChartJS
- ChartJS Bar chart painting second bar to the right
- Add a click event to the bar chart of chartjs
- Different color for each bar in a bar chart; ChartJS
More Query from same tag
- How can I automatically rescale the y axis of my log chart using ChartJS?
- Is it possible to have tick stepSize for each dataset in Chart.js?
- Vue Chart JS options aren't used
- Chart.js: Change lengend colors to array
- Legends for line charts in Chart.js
- How can i display multiple years of data from 1 project in Chart.js?
- Chart.js dynamically upating data using variable
- how do I use for loop inside script tag in ejs
- Cursor pointer change onhover not working in chartjsv3
- The chart list is not showing
- Ember.Computed is not a function
- So, I'm fetching my data from phpMyAdmin MySQL to the chart.js, but I need it with AJAX, but how AJAX works with Chart.js?
- How to include adapters and plugins with ChartJS
- Tell if an line is hidden
- How to wait for all items to load within ng-repeat before then rendering a chart for each item
- How to add space between two scales in chart-js?
- How can I hide tooltip in Chart.js on a specific data label?
- API data not loading in chart.js until element is inspected or page is resized
- Angular Chart.js, how to remove series?
- How can I hide the first Y Axis tick mark on ChartJs?
- Intersection point in line graph in Chart.js?
- Chart.js click event to open a custom tooltip does not work sometimes
- Ajax automatically placing double quotes around variable data returned in success call
- setting chart.js stacked bar chart data dynamically
- chart.js number of labels equal to number of datapoints
- ChartJS multiple sub labels for label
- ChartJS with React: Only one value showing on time chart
- (MVC) Is this an efficient way of displaying chart data by date?
- is there a way to change the dispaly of a date
- Fade other lines when hovering legend in Chart.js