scatterChart.stories.js 898 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import ScatterChart from 'sentry/components/charts/scatterChart';
  2. export default {
  3. title: 'Components/Data Visualization/Charts/Scatter Chart',
  4. component: ScatterChart,
  5. };
  6. export const _ScatterChart = () => {
  7. return (
  8. <ScatterChart
  9. style={{height: 400}}
  10. series={[
  11. {
  12. seriesName: 'Chrome',
  13. data: [
  14. {
  15. value: 632,
  16. name: 'Jan 1',
  17. },
  18. {
  19. value: 326,
  20. name: 'Jan 1',
  21. },
  22. {
  23. value: 236,
  24. name: 'Jan 1',
  25. },
  26. {
  27. value: 107,
  28. name: 'Jan 2',
  29. },
  30. {
  31. value: 302,
  32. name: 'Jan 3',
  33. },
  34. {
  35. value: 3,
  36. name: 'Jan 4',
  37. },
  38. ],
  39. },
  40. ]}
  41. />
  42. );
  43. };