ListChart
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 { List } = Viz
export const MyDashboard = () => {
return (
<List
vizName: 'ListChart',
name: 'Rules',
headers: [
{ name: 'Rules', span: 4},
{ name: 'Hits', span: 8},
{ name: 'Hits Over Time', span: 12}
]
data: [
[{value: 'Rule 1'}, {value: 15}, {type: 'chart', value: [HighchartSeriesData]}],
[{value: 'Rule 2'}, {value: 8}, {type: 'chart', value: [HighchartSeriesData]}],
...
],
description: 'List Chart Description',
unit: 'bps',
/>
)
}interface IListData {
value: string | IObject[]
type?: string
format?: string
unit?: string
}
interface IListProps extends IBasicVizChartProps {
name: string
headers: { name: string; span: number }[]
data: IListData[][]
}
{
vizName: 'ListChart',
name: 'Rules',
headers: dataMap['RPT.ADC.L4SLB.RULELIST.HEADERS'](),
data: dataMap['RPT.ADC.L4SLB.RULELIST.DATA'](),
description: 'List Chart Description',
unit: 'bps',
},[
[
{value: 'string'},
{value: number},
{type: 'chart',
value: [
[
yAxisValue: number,
xAxisValue: number
],
... // more plot points
]
}
]
]headers: [
{ name: string, span: number},
...
]