Sankey
Sankey Chart used in SSLi HC App

Props
Usage Example
Data
Color Order

Last updated
Was this helpful?
Sankey Chart used in SSLi HC App


Last updated
Was this helpful?
Was this helpful?
import React from 'react'
import { Viz } from 'a10-gui-dgp-viz'
const { Sankey } = Viz
export const MyDashboard = () => {
return (
<Sankey
name="Sankey: Source IPs vs Destination IPs"
data={[
{ from: '192.157.23.8', to: '101.110.00.1', weight: 4 },
{ from: '192.157.23.8', to: '101.010.10.3', weight: 2 },
{ from: '192.157.23.8', to: '101.011.11.7', weight: 5 },
{ from: '192.157.23.3', to: '101.110.00.1', weight: 4 },
{ from: '192.157.23.3', to: '101.010.10.3', weight: 2 }
]
}
/>
)
}interface ISankeyProps{
vizName: 'Sankey'
data: ISankeyData
colors: string[]
}const data: {
from: string
to: string
weight: number
}[] = [
{ from: '192.157.23.8', to: '101.110.00.1', weight: 4 },
{ from: '192.157.23.8', to: '101.010.10.3', weight: 2 },
{ from: '192.157.23.8', to: '101.011.11.7', weight: 5 },
{ from: '192.157.23.3', to: '101.110.00.1', weight: 4 },
{ from: '192.157.23.3', to: '101.010.10.3', weight: 2 },
{ from: '192.157.23.3', to: '101.011.11.7', weight: 5 },
{ from: '226.158.23.6', to: '101.110.00.1', weight: 4 },
{ from: '226.158.23.6', to: '101.010.10.3', weight: 2 },
{ from: '226.158.23.6', to: '101.011.11.7', weight: 5 },
{ from: '126.158.23.5', to: '101.110.00.1', weight: 4 },
{ from: '126.158.23.5', to: '101.010.10.3', weight: 2 },
{ from: '126.158.23.5', to: '101.011.11.7', weight: 5 },
{ from: '103.158.23.3', to: '101.110.00.1', weight: 4 },
{ from: '103.158.23.3', to: '101.010.10.3', weight: 2 },
{ from: '103.158.23.3', to: '101.011.11.7', weight: 5 },
]