Chart.Js v2.2.0 發布,一個簡單、面向對象、為設計者和開發者準備的圖表繪制庫

jopen 8年前發布 | 11K 次閱讀 Chart.Js 圖表

Chart.js幫你用不同的方式讓你的數據變得可視化。每種類型的圖表都有動畫效果,并且看上去非常棒,即便是在retina屏幕上。

Chart.js基于HTML5 canvas技術,支持所有現代瀏覽器,并且針對IE7/8提供了降級替代方案。

Chart.js不依賴任何外部工具庫,輕量級(壓縮之后僅有4.5k),并且提供了加載外部參數的方法。

教程:Chart.js 中文文檔   

更新日志

功能增強

  • New build system #2555
  • Adds a new tooltip and hover mode that replicates the label mode of Chart.js V1. #2299 Thanks@Mesonyx
  • Allow stacked scatter charts #2878 Thanks @mtanda
  • Can now manually configure the thickness of a bar in a bar chart. Use a new barThickness option on the correct axis to set the thickness of a bar. #2910 Thanks @Joshuabaker2
  • You can now configure the starting angle for radar charts #1012 Thanks @slinhart
  • You can now configure the starting angle for polar area charts #524

問題修復

  • Fixed JSHint warnings #2734 Thanks @simonbrunel
  • Fixed the tooltip average position calculation #2826
  • Allow passing the value property to the time scale getPixelForValue function #2604 #2916
  • If no config is passed to the chart, gracefully fail. #2526
  • spanGaps option for line chart can now be specified per chart instead of only per dataset
  • Polar area charts used to be off center #2708
  • Fixed typo in tooltip section of docs #2839
  • Fixed scale title display in samples #2848 Thanks @ronaldgrn
  • Fixed an issue when the time scale had only one point #2741 Thanks @duerahan
  • Fixed an issue with tooltip display when one dataset does not have a value. #2789 Thanks @awallat
  • Scale docs linked to wrong session #2859 Thanks @azranel
  • Default to a 0 starting point for polar area graphs #2809
  • Fixed an issue with pie and doughnut chart hover border clipping #2844 Thanks @neilmacintyre
  • Fixed a typo in the docs #2888
  • Fixed a typo in the bar chart docs #2897 Thanks @jimkring
  • Improve documentation regarding offsetGridLines option #2894 Thanks @moberwasserlechner
  • Fix an issue when clicking on the label of a category scale #2802
  • Tooltip xAlign and yAlign were swapped. #2923 Thanks @jeffesp
  • Fix typo in the docs #2936 Thanks @gitname
  • Add wikipedia link for DRY acronym #2905 Thanks @shuson
  • Fix null labels affecting tooltips #2875 Thanks @Mesonyx
  • Fix docs typo #2961 Thanks @moberwasserlechner
  • Fixed an issue with numerical data sent to the chart as strings when the axis was stacked #2915
  • Fix an issue when hovering a point on the chart where not all datasets have data. #2990 Thanks@tiagoroldao
  • Fix an issue in the docs where the pie chart was difficult to click on #2983 Thanks @sibennayak
  • Removed an unused property from the radar chart sample #3027 Thanks @moberwasserlechner
  • Correct doc spelling mistakes #3032 Thanks @Neabfi
  • Prevent the time scale getLabelMoment method from going out of bounds #3039 Thanks @ianks
  • Duplicate stepSize property in docs #3048 Thanks @mdewilde
  • getElementAtEvent could return more than 1 item #2981#2884 Thanks @IonutLaceanu
  • Fixed spanGaps option to work with bezier curves #2812

下載

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!