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

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

 

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

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

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

教程:Chart.js 中文文檔   

 

更新日志

新功能

  • #3201 Expose data points info for custom tooltip. Thanks @bydooweedoo
  • #3400 New tooltip and hover interaction modes.
  • #3411 New displayColors option to turn off tooltip color boxes.
  • #3453 New tooltip average and nearest positioning modes.
  • #3460 New line chart fill modes.
  • #3472 Add new caretX and caretY properties to tooltip point.
  • #3474 Charts can now be created from the canvas id.
  • #3476 Layout service now supports configurable padding.
  • #3477 New method to reset() the chart to its initial state.
  • #3494 New tooltips.filter option to filter tooltip items.

增強

  • #3281 Better number formatting for the radial linear scale.
  • #3326 Make charts vertically responsive.
  • #3364 Inject iframe for responsive charts only.
  • #3399 Better animation when adding or removing data.
  • #3400 Improve tooltip and hover Interactions.
  • #3411 Display tooltip color boxes for all tooltips.
  • #3417 Expose the drawBackground tooltip method. Thanks @mjeanroy
  • #3468 Bar chart performance improvements.
  • #3504 Reorganize, cleanup and enhance samples.
  • Update installation instructions in README.

問題已修復

  • #3133 Skip non finite data points when determining scale sizes. Thanks @bcongdon
  • #3323 Fix the legend drawing when labels.usePointStyle is true.
  • #3324 Compute correct tooltip size when there is no title present.
  • #3325 Specifically handle multiline strings for doughnut charts.
  • #3341 Fix scale documentation.
  • #3356 Fix initial aspect ratio when not responsive.
  • #3356 Fix radar default aspect ratio and samples.
  • #3357 Fix documentation typos. Thanks @kant
  • #3358 Fix title overflow by using maxWidth fillText() argument. Thanks @dylan-kerr
  • #3361 Fix HTML legend string for polar area charts to match doughnut charts.
  • #3409 Generate ticks using only minmax and stepSize when all specified. Thanks @fewstera
  • #3421 Fix bubble chart tooltip callback to use correct labels.
  • #3443 Properly merge colors for the tooltip labels.
  • #3444 Fix documentation comparison table "check" character. Thanks @tiesont
  • #3446 Fix tooltip caret position.
  • #3450 Fix options.events option merging.
  • #3474 Prevent exception when an invalid canvas/context/id is provided.
  • #3490 Add missing tick autoSkipPadding option documentation. Thanks @bretjb
  • #3516 Fix a documentation typo. Thanks @varatep
  • #3522 Fix code and documentation typos. Thanks @jsoref
  • #3527 Fix iframe resize handler when re-attached to DOM.
  • Move reverse option for labels to correct section in docs.

發展

  • #3281 Refactor ticks generators and formatters.
  • #3356 Gulp command switch to run specific test files.
  • #3414 Fix NPM watchify dependency. Thanks @fewstera
  • #3473 Extend ESLint to unit test.
  • #3526 Bump ESLint to v3.x.

下載

本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/5c0c88e3

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