forked from ddrilling/asb_cloud_front
Добавлен проп короткого названия датасета
This commit is contained in:
parent
1da3bbe290
commit
e147d11fdc
@ -228,8 +228,6 @@ const _D3MonitoringCharts = <DataType extends Record<string, unknown>>({
|
|||||||
})
|
})
|
||||||
}, [groups, data])
|
}, [groups, data])
|
||||||
|
|
||||||
console.log(chartDomains)
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
datasetGroups.forEach((sets, i) => {
|
datasetGroups.forEach((sets, i) => {
|
||||||
|
@ -56,7 +56,7 @@ const makeDefaultRender = <DataType,>(): D3GroupRenderFunction<DataType> => (gro
|
|||||||
<div className={'tooltip-group'} key={chart.key}>
|
<div className={'tooltip-group'} key={chart.key}>
|
||||||
<div className={'group-label'}>
|
<div className={'group-label'}>
|
||||||
<Icon style={{ color: chart.color }} />
|
<Icon style={{ color: chart.color }} />
|
||||||
<span>{chart.label}:</span>
|
<span>{chart.shortLabel || chart.label}:</span>
|
||||||
</div>
|
</div>
|
||||||
{data.map((d, i) => (
|
{data.map((d, i) => (
|
||||||
<span key={`${i}`}>
|
<span key={`${i}`}>
|
||||||
|
@ -50,7 +50,7 @@ export const makeDefaultRender = <DataType,>(): D3RenderFunction<DataType> => (d
|
|||||||
<div className={'tooltip-group'} key={chart.key}>
|
<div className={'tooltip-group'} key={chart.key}>
|
||||||
<div className={'group-label'}>
|
<div className={'group-label'}>
|
||||||
<Icon style={{ color: chart.color }} />
|
<Icon style={{ color: chart.color }} />
|
||||||
<span>{chart.label}:</span>
|
<span>{chart.shortLabel || chart.label}:</span>
|
||||||
</div>
|
</div>
|
||||||
{data.map((d, i) => (
|
{data.map((d, i) => (
|
||||||
<span key={`${i}`}>
|
<span key={`${i}`}>
|
||||||
|
@ -30,6 +30,7 @@ export type BaseChartDataset<DataType> = {
|
|||||||
yAxis: ChartAxis<DataType>
|
yAxis: ChartAxis<DataType>
|
||||||
xAxis: ChartAxis<DataType>
|
xAxis: ChartAxis<DataType>
|
||||||
label?: ReactNode
|
label?: ReactNode
|
||||||
|
shortLabel?: ReactNode
|
||||||
color?: Property.Color
|
color?: Property.Color
|
||||||
opacity?: number
|
opacity?: number
|
||||||
width?: number | string
|
width?: number | string
|
||||||
|
Loading…
Reference in New Issue
Block a user