您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

44 行
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. };