Skip to content

YiniXu9506/metrics-chart

Repository files navigation

Metrics Chart

A chart based on elastic chart visualize promethues data.

How To Install

npm install -S metrics-chart

How To Use

Sync cross hair for each metrics chart on PointerEvent triggered

import { MetricsChart, SyncChartContext } from 'metrics-chart'
import { MetricsChartTheme } from 'metrics-chart/dist/theme'

import 'metrics-chart/dist/theme/light_theme.css'
import 'metrics-chart/dist/theme/dark_theme.css'

<MetricsChartTheme value="light">
    <SyncChartPointer>
        {metricsList.map((metrics) => (
            <MetricsChart
                queries={m.metrics}
                range={range}
                ...
            />
        ))}
    </SyncChartPointer>
</MetricsChartTheme>

How to Publish Package

npm install
npm run build
npm publish --access public

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages