0.16.0 • Published 1 year ago

@pingcap-incubator/tidb-dashboard-lib-charts v0.16.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@pingcap-incubator/tidb-dashboard-lib-charts

Usage

Step 1

Import style css

import "@pingcap-incubator/tidb-dashboard-lib-charts/dist/style.css"

Step 2

Use ChartThemeSwitch component in the top level (for example App component)

function Routes() {
  const theme = useComputedColorScheme()

  return (
    <Router>
      <Stack p={16}>
        {/* ... */}
        <ChartThemeSwitch value={theme} />
      </Stack>
    </Router>
  )
}

Step 3

Render series data by SeriesChart component

<SeriesChart
  unit={config.unit}
  data={seriesData}
  timeRange={tr}
  theme={colorScheme}
/>
0.16.0

1 year ago

0.15.0

1 year ago

0.14.1

1 year ago

0.14.0

1 year ago

0.13.1

1 year ago

0.13.0

1 year ago

0.12.0

1 year ago

0.11.0

1 year ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago