score:2
Accepted answer
The border or segment stroke is drawn over the sectors. So if you set the color to transparent, you won't see any gap between the sectors (I assume that is what you are expecting). It'll be almost as if you set storkewidth to 0.
It's pretty obvious if you set the segmentStrokeWidth to a high enough value and set a translucent value i.e. something like
var myPieChart = new Chart(ctx).Pie(data, {
segmentStrokeWidth: 20,
segmentStrokeColor: "rgba(255, 255, 255, 0.4)"
});
Contrast this fiddle - http://jsfiddle.net/tabb8gy0/ with this - http://jsfiddle.net/m2k62fgp/
Source: stackoverflow.com
Related Query
- Use transparent stroke color with chartjs pie chart
- Legend color not working with randomly generated background colors in chartjs pie chart
- Chartjs random colors for each part of pie chart with data dynamically from database
- chartjs datalabels change font and color of text displaying inside pie chart
- Chartjs doughnut chart with gradient color
- Angular 8 & ChartJs change color in pie chart
- ChartJS pie chart with simple parsing options doesn't render, only works when set as bar/line chart
- Trouble with setting background color for Line chart at Chartjs version 3.5.1
- I want to use an object to help create a chart with Chartjs
- Create a pie chart with chartjs package in R
- How do I use ChartJS with a background color in the space between two line charts?
- Use multi data to draw chart with chartjs
- Chart area background color chartjs
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- ChartJS - Draw chart with label by month, data by day
- How set color family to pie chart in chart.js
- Display line chart with connected dots using chartJS
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- How to fix chart Legends width-height with overflow scroll in ChartJS
- Display values outside of pie chart in chartjs
- ChartJS bar chart with legend which corresponds to each bar
- ChartJS - Line Chart with different size datasets
- How to display data labels outside in pie chart with lines in ionic
- angular-chart.js bar chart with 100% opacity color
- Chartjs - data format for bar chart with multi-level x-axes
- ChartJS - Line chart issue with only 1 point
- ChartJs line chart - display permanent icon above some data points with text on hover
- Chartjs - pointColor to follow current color of gradient stroke
- Use Chartjs with reactjs
- ChartJS 2.0 - Huddle labels on pie chart
More Query from same tag
- Moving the zerolines in ChartJS scatter chart
- All the bar in bar chart stays at left with very little width
- Setting ticks of Chart.js in html.erb file
- date and time chart With Chart js
- Chart.js not installing with NPM
- How to use major tick marks in chart.js 2.9.3?
- Data not fully displaying on bar chart
- How to set the number of of rows in a line chart in chart.js?
- Legend on chart.js
- Making chartjs scrollable on the x-axis
- Graph Chart.js dropdown menu - chart rendering
- Chartjs Polar Area Chart: Category missing
- how can i show labels and value in both on bar chart
- Chart.js - how to make proportional intervals on X axis on line chart
- Draw asynchronous information on a graph with VueJS
- How to increase Chart.js yAxes' height to prevent overlapping
- Chart.JS: How can I only display data labels when the doughnut size is big enough for the text?
- Angular ng2-charts Radarchart compile error for startAngle
- Charts not showing in wicked pdf
- Add value to horizontal bar in chart.js
- Double Y Axis + Bar chart combo
- Angular-Chart not rendering anything
- Why is each character displayed on a new line/row?
- Chart.js vertically symmetrical chart
- How to achieve the best possible performance with mutable data and real-time charts in React?
- Second dataset with single point makes y axis too big on Chart.js
- Drill Down Chart find Index returns -1
- ChartJS V3 borderRadius only works on top
- Is there a way to represent date hole in chartjs time series?
- How to export Chart.js chart using toBase64Image, but with no transparency?