highcharts-zh_CN.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. * Highcharts-zh_CN plugins v1.0.0 (2017-02-22)
  3. *
  4. * (c) 2017 Jianshu Technology CO.,LTD (https://jianshukeji.com)
  5. *
  6. * Author : John@jianshukeji.com, Blue Monkey
  7. *
  8. * License: Creative Commons Attribution (CC)
  9. */
  10. (function(H) {
  11. var protocol = window.location.protocol;
  12. var defaultOptionsZhCn = {
  13. lang: {
  14. // Highcharts
  15. contextButtonTitle: '图表导出菜单',
  16. decimalPoint: '.',
  17. downloadJPEG: "下载JPEG图片",
  18. downloadPDF: "下载PDF文件",
  19. downloadPNG: "下载PNG文件",
  20. downloadSVG: "下载SVG文件",
  21. drillUpText: "返回 {series.name}",
  22. invalidDate: '无效的时间',
  23. loading: '加载中...',
  24. months: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  25. noData: "没有数据",
  26. numericSymbols: null,
  27. printChart: "打印图表",
  28. resetZoom: '重置缩放比例',
  29. resetZoomTitle: '重置为原始大小',
  30. shortMonths: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  31. thousandsSep: ',',
  32. weekdays: ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期天'],
  33. // Highstock
  34. rangeSelectorFrom: '开始时间',
  35. rangeSelectorTo: '结束时间',
  36. rangeSelectorZoom: '缩放',
  37. // Highmaps
  38. zoomIn: '缩小',
  39. zoomOut: '放大'
  40. },
  41. global: {
  42. useUTC: true,
  43. //timezoneOffset: -8 * 60,
  44. canvasToolsURL: protocol + '//cdn.hcharts.cn/highcharts/modules/canvas-tools.js',
  45. VMLRadialGradientURL: protocol + +'//cdn.hcharts.cn/highcharts/gfx/vml-radial-gradient.png'
  46. },
  47. title: {
  48. text: '图表标题'
  49. },
  50. tooltip: {
  51. dateTimeLabelFormats: {
  52. millisecond: '%H:%M:%S.%L',
  53. second: '%H:%M:%S',
  54. minute: '%H:%M',
  55. hour: '%H:%M',
  56. day: '%Y-%m-%d',
  57. week: '%Y-%m-%d',
  58. month: '%Y-%m',
  59. year: '%Y'
  60. }
  61. },
  62. exporting: {
  63. url: protocol + '//export.highcharts.com.cn'
  64. },
  65. credits: {
  66. text: 'Highcharts',
  67. href: 'https://highcharts.com.cn',
  68. },
  69. xAxis: {
  70. dateTimeLabelFormats: {
  71. millisecond: '%H:%M:%S.%L',
  72. second: '%H:%M:%S',
  73. minute: '%H:%M',
  74. hour: '%H:%M',
  75. day: '%Y-%m-%d',
  76. week: '%Y-%m-%d',
  77. month: '%Y-%m',
  78. year: '%Y'
  79. }
  80. }
  81. };
  82. H.setOptions(defaultOptionsZhCn);
  83. }(Highcharts));