0.16.0 • Published 9 months ago

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

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

9 months ago

0.15.0

10 months ago

0.14.1

10 months ago

0.14.0

11 months 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

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago