0.16.0 • Published 7 months ago

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

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months 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

7 months ago

0.15.0

7 months ago

0.14.1

7 months ago

0.14.0

8 months ago

0.13.1

9 months ago

0.13.0

9 months ago

0.12.0

9 months ago

0.11.0

10 months ago

0.10.0

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.7.0

10 months ago

0.6.0

10 months ago

0.5.0

10 months ago

0.4.0

11 months ago

0.3.0

11 months ago

0.2.0

11 months ago

0.1.0

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago