You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
669 B

  1. import { sampleData, trendsData } from './assets/js/data';
  2. export const demoRegistry = {
  3. demo1: {
  4. type: "demo",
  5. config: {
  6. data: sampleData[0],
  7. type: 'bar',
  8. height: 140,
  9. colors: ['red'],
  10. },
  11. },
  12. demo2: {
  13. type: "demo",
  14. config: {
  15. data: sampleData[3],
  16. type: 'bar',
  17. height: 140,
  18. colors: ['orange'],
  19. axisOptions: {
  20. xAxisMode: "tick"
  21. },
  22. barOptions: {
  23. spaceRatio: 0.2
  24. },
  25. },
  26. options: [
  27. {
  28. name: "barOptions",
  29. path: ["barOptions"],
  30. type: "map",
  31. mapKeys: ['spaceRatio'],
  32. states: {
  33. "0.2": [0.2],
  34. "0.5": [0.5],
  35. "1": [1],
  36. "1.5": [1.5]
  37. },
  38. activeState: "0.2"
  39. }
  40. ]
  41. },
  42. };