score:3
A donut is just a pie chart with a blank center. A gauge is closer to what you are displaying. c3.js has a gauge chart.
The dial color changes as the values go past thresholds. You want to show more than one parameter, eg. 50% in progress, of which 30% passed, 20% failed. etc. This is like a stacked chart, but displayed in an arc. For this you you want to specify a pattern.
There are some examples buried in the source code. Try this:
this.chart = c3.generate({
bindto: bindToThis,
data: {
columns: [
['padded1', 100],
['padded2', 90],
['padded3', 50],
['padded4', 20]
],
type: 'gauge',
},
color: {
pattern: ['#FF0000', '#F97600', '#F6C600', '#60B044'],
threshold: {
values: [30, 80, 95]
}
}
For typescript, there are some angular components like https://www.npmjs.com/package/angular-gauge. I can't find one that shows multiple variables without modification.
See also these examples in D3 that could be modified to dynamically change the background arcs angles to track the measured variables. The needle is optional.
How to customise Gauge needle pointer using D3.js or C3.js?
Or Gauge D3.js display value at the top of the needle enter link description here
Source: stackoverflow.com
Related Query
- How to make a C3 donut chart to a semi circle or a half donut chart in typescript?
- D3.js how to make the lines not go inside the arc of a donut chart
- How to add a circle in the middle of donut chart and fill it in d3 js?
- How to tell d3js that this half donut chart should fill values from left to right corner
- Draw the progress path from right to left in semi circle donut chart using d3js
- how to make d3js donut chart supports ie8?
- How do I make a D3.js donut chart (aster plot) animate on page load with transition
- How to add drop shadow to d3.js pie or donut chart
- how to create labels for data in donut chart using d3.js
- D3 bubble chart / pack layout - How to make bubbles radiate out from the largest bubbles to the smallest?
- How to make curved lines to straight lines for Hierarchy Chart using d3.js
- How to make an interactive tree chart with d3?
- d3 how to make single stacked column chart
- How to make circle to appear one after another using d3 transition?
- How to make all the nodes circle the center node?
- How to add tooltips in a D3 donut chart
- How to Make a bar chart with rounded corners with extended grid in d3.js?
- How do I make a basic column(vertical) chart in d3js?
- d3.js: How to add value below the label in donut chart
- How to remove the outer circle in D3 bubble chart
- How to make grouped stacked bar chart in d3js?
- D3 - Placing labels and lines on a half pie/half donut chart
- How to make labels appear only when the chart is zoomed in
- How to word wrap the legend text for a donut chart
- How to change color of donut chart created using d3.js?
- How can I make a SVG group follow a gradient in a circle
- How to cut y axis to make the chart look better?
- D3.js v7 - How to make Y axis labels always show on screen for a scrollable chart
- How to make indents between sectors in donut chart?
- How to make unselected part of pie chart and bar grayed out?
More Query from same tag
- Update pattern: updating changes every node
- d3.js axes for time intervals (ages) spanning days, months, years
- Axis is not displaying the first element in the domain
- Finding the x and y co-ordinates on circle in d3 pie chart
- how to make simple directed graph using d3
- date format in d3, would like to have month as an integer instead of decimal
- .on("drag", function()) and .on("contextmenu", function()) does not work when used on the same code
- D3 polygon projection is wrong
- d3.js: Is it possible to line transition by key instead of index?
- D3.js zooming on specific path after loading finished
- D3js pie chart click event not work
- How can I iterate through an array over and over again while assigning each of its values to all the svgs in my DOM
- d3 responsive multiple lines
- Appending another element when a sibling element's transition ends
- Exit selection not working
- D3js - change line color based on dataset
- Add node on click on another node with d3js
- D3: slow zoomable heatmap
- d3.js bar chart animations
- D3.JS trying to format the text in first tick of axis
- Is it possible to skip nodes in D3.js tree?
- d3 v3 - sync brush zoom and scroll zoom
- Network diagram
- D3 stacked area chart stack function
- D3 interactive h-bar
- Transitioning xAxis and data at the same time - D3.js
- Replicating Mike Bostock's collapsible tree
- Rendering order for group elements (<g>) with d3.js
- Pushing x and y values into array variables
- Network chord diagram / hierarchical edge bundle in R