12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import {LineChart} from 'sentry/components/charts/lineChart';
- export default {
- title: 'Components/Data Visualization/Charts/Line Chart',
- component: LineChart,
- };
- export const _LineChart = () => {
- return (
- <LineChart
- style={{height: 400}}
- series={[
- {
- seriesName: 'Chrome',
- data: [
- {
- value: 632,
- name: 'Jan 1',
- },
- {
- value: 107,
- name: 'Jan 2',
- },
- {
- value: 302,
- name: 'Jan 3',
- },
- {
- value: 3,
- name: 'Jan 4',
- },
- ],
- },
- {
- seriesName: 'Safari',
- data: [
- {
- value: 100,
- name: 'Jan 1',
- },
- {
- value: 403,
- name: 'Jan 2',
- },
- {
- value: 222,
- name: 'Jan 3',
- },
- {
- value: 482,
- name: 'Jan 4',
- },
- ],
- },
- ]}
- />
- );
- };
|