ProgressBarChart
Props
Usage Example
Data Structure
Data Structure Example
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
import React from 'react'
import { Viz } from 'a10-gui-dgp-viz'
const { ProgressBarChart} = Viz
export const MyDashboard = () => {
return (
<ProgressBar
vizName="ProgressBarChart"
name="LOAD DISTRIBUTION 2"
data={
"series": {
"0": {
"name": "Server 1",
"data": 1803,
"total": 2000
},
"1": {
"name": "Server 2",
"data": 307,
"total": 2000
},
"2": {
"name": "Server 3",
"data": 967,
"total": 2000
}
}
}
units=''
progressColor="#ff7676",
progressBGColor="#6fc38c"
/>
)
}
interface ProgressBarProps extends IBasicVizChartProps{
vizName: string
name: string
data: {}
progressColor: string
progressBGColor: string
}{
"vizName": "ProgressBarChart",
"name": "LOAD DISTRIBUTION 2",
"data": {
"series": [{
"name": "Server 1",
"data": 1803,
"total": 2000
},
"1": {
"name": "Server 2",
"data": 307,
"total": 2000
},
"2": {
"name": "Server 3",
"data": 967,
"total": 2000
}]
},
"progressColor": "#ff7676",
"progressBGColor": "#6fc38c",
"units": ""
}data={
"series": [
{
"name": string,
"data": number,
"total": number
},
...
]
}data: [{
"name": "Server 1",
"data": 1803,
"total": 2000
},
"1": {
"name": "Server 2",
"data": 307,
"total": 2000
},
"2": {
"name": "Server 3",
"data": 967,
"total": 2000
},
...]