Chart.Js v2.5.0 发布,一个简单、面向对象、为设计者和开发者准备的图表绘制库
jopen 8年前
<p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/ff26fd894560221b9289d2eef4115578.png" /></strong></p> <p> </p> <p>Chart.js帮你用不同的方式让你的数据变得可视化。每种类型的图表都有动画效果,并且看上去非常棒,即便是在retina屏幕上。</p> <p>Chart.js基于HTML5 canvas技术,支持所有现代浏览器,并且针对IE7/8提供了降级替代方案。</p> <p>Chart.js不依赖任何外部工具库,轻量级(压缩之后仅有4.5k),并且提供了加载外部参数的方法。</p> <p>教程:<a href="http://www.open-open.com/lib/view/open1464182792891.html">Chart.js 中文文档</a> </p> <h2>更新日志</h2> <ul> <li><a href="/misc/goto?guid=4958999283638033298">#3570</a> Removed unused <code>Chart.helpers.cancelAnimFrame</code> method.</li> <li><a href="/misc/goto?guid=4958999283733326244">#3669</a> <code>onHover</code> callback now has 3 parameters. The 2nd parameter is the event that triggered the hover. This was done for consistency with the <code>onClick</code> callback.</li> <li><a href="/misc/goto?guid=4958999283812150966">#3819</a> <code>IPlugin.afterScaleUpdate</code>: use <code>IPlugin.afterLayout</code> hook instead.</li> <li><a href="/misc/goto?guid=4958999283812150966">#3819</a> Extending <code>Chart.PlugingBase</code> is not anymore required and is strongly discouraged, instead create/register plugins using plain JavaScript objects (see this <a href="/misc/goto?guid=4958999283916360839">example</a>).</li> <li><a href="/misc/goto?guid=4958999283999293883">#2060</a> Chart options can now be updated at runtime.</li> <li><a href="/misc/goto?guid=4958999284092142737">#2643</a> Stacked bar charts now support groupings into smaller stacks. Thanks <a href="/misc/goto?guid=4958999284180129404">@potatopeelings</a></li> <li><a href="/misc/goto?guid=4958999284262837450">#3335</a> Plugins can now be specified per chart.</li> <li><a href="/misc/goto?guid=4958999284353289790">#1933</a> Legends can now be hidden dynamically by a plugin at runtime based on the chart size.</li> <li><a href="/misc/goto?guid=4958999284439818533">#2873</a>, <a href="/misc/goto?guid=4958999284530142652">#3491</a>, <a href="/misc/goto?guid=4958999284624783517">#3506</a> Chart elements are clipped when outside the chart area. Thanks <a href="/misc/goto?guid=4958999284701986079">@KoyoSE</a></li> <li><a href="/misc/goto?guid=4958999284791770140">#3208</a> Slow performance using moment.js. Thanks <a href="/misc/goto?guid=4958999284882256203">@tredston</a></li> <li><a href="/misc/goto?guid=4958999284975690113">#3225</a> Multiple lines of text are now supported in radar chart labels</li> <li><a href="/misc/goto?guid=4958999285055358677">#3514</a> Add <code>rectRounded</code> point style. Thanks <a href="/misc/goto?guid=4958999285158521380">@cmoel</a></li> <li><a href="/misc/goto?guid=4958999285243805546">#3818</a> Removed useless initialization steps to improve performance</li> <li><a href="/misc/goto?guid=4958999285327947881">#2478</a> Large x axis labels created odd gaps in the chart</li> <li><a href="/misc/goto?guid=4958999285414130753">#2780</a> Bar chart when data is 0. Thanks <a href="/misc/goto?guid=4958999284701986079">@KoyoSE</a></li> <li><a href="/misc/goto?guid=4958999285518609566">#2879</a>, <a href="/misc/goto?guid=4958999285604889784">#3354</a> Rotated labels caused issues on the category axis</li> <li><a href="/misc/goto?guid=4958999285696740531">#3141</a> Axis width incorrectly used <code>ticks.padding</code> option when measuring</li> <li><a href="/misc/goto?guid=4958999285785715041">#3199</a> Line Chart border width of 0 was ignored.</li> <li><a href="/misc/goto?guid=4958999285878484088">#3412</a> Long y axis tick text was cutoff</li> <li><a href="/misc/goto?guid=4958999285961037576">#3381</a> Infinite loop when in certain cases when generating logarithmic ticks.</li> <li><a href="/misc/goto?guid=4958999286049054454">#3387</a> Fixed legend text alignment</li> <li><a href="/misc/goto?guid=4958999286132658900">#3408</a> Monotone cubic interpolation broke when two adjacent points had the same x value</li> <li><a href="/misc/goto?guid=4958999286227071598">#3528</a> <code>null</code> data caused incorrect tooltips for the time scale. Thanks <a href="/misc/goto?guid=4958999286306815533">@Jareechang</a></li> <li><a href="/misc/goto?guid=4958999286396756417">#3585</a> Logarithmic stacked bar charts don't draw the first dataset</li> <li><a href="/misc/goto?guid=4958999286477755121">#3589</a> Wrong category size of bars when x axis has min and max options. Thanks <a href="/misc/goto?guid=4958999284701986079">@KoyoSE</a></li> <li><a href="/misc/goto?guid=4958999286578161576">#3591</a> Correct radar chart tension settings</li> <li><a href="/misc/goto?guid=4958999286668368967">#3592</a> Correct radar chart documentation name for point radius setting</li> <li><a href="/misc/goto?guid=4958999286752321075">#3603</a> Fix crash in <code>dataset</code> interaction mode</li> <li><a href="/misc/goto?guid=4958999286842259621">#3605</a> Documentation for <code>x-axis</code> interaction mode was incorrect. Thanks <a href="/misc/goto?guid=4958999286937925846">@weareoutman</a></li> <li><a href="/misc/goto?guid=4958999287017139053">#3607</a> Correct link in animation section of documentation. Thanks <a href="/misc/goto?guid=4958999287114564374">@38elements</a></li> <li><a href="/misc/goto?guid=4958999287195877528">#3618</a> Tooltip label is incorrect on Bar chart when min is defined. Thanks <a href="/misc/goto?guid=4958999284701986079">@KoyoSE</a></li> <li><a href="/misc/goto?guid=4958999287294038741">#3685</a> bug when calculating if steps fit into scale as a whole number. Thanks <a href="/misc/goto?guid=4958999287385553091">@Tarqwyn</a></li> <li><a href="/misc/goto?guid=4958999287483873888">#3713</a> Axis label was cutoff when axis was at top of chart. Thanks <a href="/misc/goto?guid=4958999284701986079">@KoyoSE</a></li> <li><a href="/misc/goto?guid=4958999287583649097">#3717</a> Removed jQuery code from samples. Thanks <a href="/misc/goto?guid=4958999284701986079">@KoyoSE</a></li> <li><a href="/misc/goto?guid=4958999287682938323">#3739</a> Incorrect use of animation options in doughnut chart docs. Thanks <a href="/misc/goto?guid=4958999287773550017">@NtsDK</a></li> <li><a href="/misc/goto?guid=4958999287858323181">#3741</a> Axis labels placed incorrectly when axis is at the top of the chart. Thanks <a href="/misc/goto?guid=4958999284701986079">@KoyoSE</a></li> <li><a href="/misc/goto?guid=4958999287958474980">#3763</a> Pie charts incorrectly calculated the inner radius when cutout percentage was 0.</li> <li><a href="/misc/goto?guid=4958999288055920556">#3772</a> Fix incorrect anchor link in docs. Thanks <a href="/misc/goto?guid=4958992632288152198">@mdewilde</a></li> <li><a href="/misc/goto?guid=4958999288167222315">#3788</a> Fixed docs for using Chart.js with CommonJS and ES6 imports. Thanks <a href="/misc/goto?guid=4958999286306815533">@Jareechang</a></li> <li><a href="/misc/goto?guid=4958999288269816812">#3801</a> Ignore <code>.gitignore</code> file for Bower</li> <li><a href="/misc/goto?guid=4958999288353662458">#3610</a> Updated documentation for plugin renames. Thanks <a href="/misc/goto?guid=4958999288439558881">@compwright</a></li> <li><a href="/misc/goto?guid=4958999288533459800">#3635</a> Upgrade to <code>gulp-uglify</code> v2.0.0 to improve build speed. Thanks <a href="/misc/goto?guid=4958999288626224550">@jeffcarey</a></li> <li><a href="/misc/goto?guid=4958999288709615144">#3718</a>, <a href="/misc/goto?guid=4958999288798442499">#3795</a> Refactoring to move platform specific code into it's own module. The ultimate goal is to allow builds for non browser platforms</li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4958999288879528592" rel="nofollow"><strong>Chart.bundle.js</strong></a></li> <li><a href="/misc/goto?guid=4958999288971148796" rel="nofollow"><strong>Chart.bundle.min.js</strong></a></li> <li><a href="/misc/goto?guid=4958999289066922676" rel="nofollow"><strong>Chart.js</strong></a></li> <li><a href="/misc/goto?guid=4958999289159925195" rel="nofollow"><strong>Chart.js.zip</strong></a></li> <li><a href="/misc/goto?guid=4958999289239576452" rel="nofollow"><strong>Chart.min.js</strong></a></li> <li><a href="/misc/goto?guid=4958999289332509085" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4958999289424296921" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul> <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/5ebd2248">http://www.open-open.com/news/view/5ebd2248</a></p>