lineChart.stories.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import {LineChart} from 'sentry/components/charts/lineChart';
  2. export default {
  3. title: 'Components/Data Visualization/Charts/Line Chart',
  4. component: LineChart,
  5. };
  6. export const _LineChart = () => {
  7. return (
  8. <LineChart
  9. style={{height: 400}}
  10. series={[
  11. {
  12. seriesName: 'Chrome',
  13. data: [
  14. {
  15. value: 632,
  16. name: 'Jan 1',
  17. },
  18. {
  19. value: 107,
  20. name: 'Jan 2',
  21. },
  22. {
  23. value: 302,
  24. name: 'Jan 3',
  25. },
  26. {
  27. value: 3,
  28. name: 'Jan 4',
  29. },
  30. ],
  31. },
  32. {
  33. seriesName: 'Safari',
  34. data: [
  35. {
  36. value: 100,
  37. name: 'Jan 1',
  38. },
  39. {
  40. value: 403,
  41. name: 'Jan 2',
  42. },
  43. {
  44. value: 222,
  45. name: 'Jan 3',
  46. },
  47. {
  48. value: 482,
  49. name: 'Jan 4',
  50. },
  51. ],
  52. },
  53. ]}
  54. />
  55. );
  56. };