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

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

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

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

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

教程:http://www.baiduhome.net/lib/view/open1464182792891.html

更新日志

功能增強

  • Converted legend and title blocks to use plugin system. This means that builds without these could be made
  • Allow disabling lines on a per dataset. Use showLine property in the dataset. #2580
  • Added a new tooltip callback to all customizing the colors shown. Modify the labelColor callback in the tooltip to change the colors. #2657
  • Added a way to sort tooltip items using a callback. #2661
  • Added new plugin callbacks for: resizebeforeDatasetsDrawafterDatasetsDraw, 'beforeDatasetsUpdate, and 'afterDatasetsUpdate.
  • Plugins can now return false to cancel actions. Currently only the beforeDatasetsUpdate plugin call supports this.
  • Added a config callback onResize that runs when the chart resizes.
  • The on canvas legend can now be placed on the left or the right. Simply add position: 'right' to the legend config to make this happen. The Horizontal Bar sample includes this.
  • The grid lines color option can now be passed an array of colors. #2732

問題修復

  • Fixed an issue where the 'rectRot' point style drew incorrectly. #2607
  • Fixed an issue where lines with tension 0 did not animate #2647
  • Fixed a crash in the pie-customTooltips sample file #2639
  • Fixed an issue where destroying the chart did not stop animations #2613
  • Fixed link in Readme to advanced docs section. #2675 Thanks @FROGGS
  • Fixed the syntax in the docs scale section. #2673 Thanks @zachpanz88
  • Improved importing in Common JS scenarios. #2483
  • Fixed issues with points being clipped at the edges. #2278
  • Fixed an issue that prevented the legend from rendering. #2697 Thanks @dennybiasiolli
  • Fixed an issue where the chart title did not change during update #2686 Thanks @NoelOConnell
  • Fixed an issue with AMD builds #2298 Thanks @sassomedia
  • Fixed a typo in the tooltip docs #2724 Thanks @fwolfst
  • Fixed an issue with the tooltip font color #2730 Thanks @duerahan
  • Fixed an issue with the font family for point labels in the radial linear scale #2739 Thanks@msimulcik
  • Fixed an issue with line bezier points that were forced inside the chart area. This affected zoom and pan and caused lines to be distorted

下載

 

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