pieChart.stories.js 564 B

12345678910111213141516171819202122232425262728293031
  1. import PieChart from 'sentry/components/charts/pieChart';
  2. export default {
  3. title: 'Components/Data Visualization/Charts/Pie Chart',
  4. component: PieChart,
  5. };
  6. export const _PieChart = () => (
  7. <PieChart
  8. selectOnRender
  9. series={[
  10. {
  11. seriesName: 'Browsers',
  12. data: [
  13. {
  14. name: 'Chrome',
  15. value: 3500,
  16. },
  17. {
  18. name: 'Firefox',
  19. value: 650,
  20. },
  21. {
  22. name: 'Safari',
  23. value: 250,
  24. },
  25. ],
  26. },
  27. ]}
  28. />
  29. );