2495e1d3aabee10e601fe055148cd5549d181512.svn-base 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. var A = BWA.ChartOptions.MainDashBoard = BWA.ChartOptions.MainDashBoard || {};
  4. A.getYearWaterUsageStatusChartOptions = function() {
  5. return {
  6. palette: 'Pastel',
  7. scale: {
  8. startValue: 0, endValue: 150,
  9. majorTick: {
  10. // color: '#536878',
  11. tickInterval: 10
  12. },
  13. label: {
  14. indentFromTick: 3
  15. }
  16. },
  17. rangeContainer: {
  18. ranges: [
  19. { startValue: 0, endValue: 90, color: '#77DD77' },
  20. { startValue: 90, endValue: 100, color: 'orange' },
  21. { startValue: 100, endValue: 150, color: '#92000A' }
  22. ]
  23. },
  24. valueIndicator: {
  25. type: 'twoColorNeedle'
  26. },
  27. title: {
  28. text: '수도 (%)',
  29. position: 'bottom-center',
  30. font: { size: 14 }
  31. },
  32. // value: 85,
  33. subvalues: [90],
  34. tooltip: {
  35. enabled: true,
  36. format: 'fixedPoint',
  37. customizeTooltip: function () {
  38. return {
  39. text: ['수도: ', this.valueText,'%'].join('')
  40. };
  41. }
  42. }
  43. }
  44. };
  45. });