Chart.Js v2.1.5 发布,一个简单、面向对象、为设计者和开发者准备的图表绘制库

jopen 8年前
   <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/ff26fd894560221b9289d2eef4115578.png" /></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">http://www.open-open.com/lib/view/open1464182792891.html</a></p>    <h2>更新日志</h2>    <h2>功能增强</h2>    <ul>     <li>Converted legend and title blocks to use plugin system. This means that builds without these could be made</li>     <li>Allow disabling lines on a per dataset. Use <code>showLine</code> property in the dataset. <a href="/misc/goto?guid=4958991339358352489">#2580</a></li>     <li>Added a new tooltip callback to all customizing the colors shown. Modify the <code>labelColor</code> callback in the tooltip to change the colors. <a href="/misc/goto?guid=4958991339473872034">#2657</a></li>     <li>Added a way to sort tooltip items using a callback. <a href="/misc/goto?guid=4958991339594058322">#2661</a></li>     <li>Added new plugin callbacks for: <code>resize</code>, <code>beforeDatasetsDraw</code>, <code>afterDatasetsDraw</code>, 'beforeDatasetsUpdate<code>, and 'afterDatasetsUpdate</code>.</li>     <li>Plugins can now return <code>false</code> to cancel actions. Currently only the <code>beforeDatasetsUpdate</code> plugin call supports this.</li>     <li>Added a config callback <code>onResize</code> that runs when the chart resizes.</li>     <li>The on canvas legend can now be placed on the left or the right. Simply add <code>position: 'right'</code> to the legend config to make this happen. The <a href="/misc/goto?guid=4958991339720608331">Horizontal Bar sample</a> includes this.</li>     <li>The grid lines color option can now be passed an array of colors. <a href="/misc/goto?guid=4958991339836837024">#2732</a></li>    </ul>    <h2>问题修复</h2>    <ul>     <li>Fixed an issue where the 'rectRot' point style drew incorrectly. <a href="/misc/goto?guid=4958991339958414961">#2607</a></li>     <li>Fixed an issue where lines with tension 0 did not animate <a href="/misc/goto?guid=4958991340074184799">#2647</a></li>     <li>Fixed a crash in the pie-customTooltips sample file <a href="/misc/goto?guid=4958991340199867784">#2639</a></li>     <li>Fixed an issue where destroying the chart did not stop animations <a href="/misc/goto?guid=4958991340305486700">#2613</a></li>     <li>Fixed link in Readme to advanced docs section. <a href="/misc/goto?guid=4958991340421031370">#2675</a> Thanks <a href="/misc/goto?guid=4958991340541473096">@FROGGS</a></li>     <li>Fixed the syntax in the docs scale section. <a href="/misc/goto?guid=4958991340663873567">#2673</a> Thanks <a href="/misc/goto?guid=4958991340783212217">@zachpanz88</a></li>     <li>Improved importing in Common JS scenarios. <a href="/misc/goto?guid=4958991340910917632">#2483</a></li>     <li>Fixed issues with points being clipped at the edges. <a href="/misc/goto?guid=4958991341023768401">#2278</a></li>     <li>Fixed an issue that prevented the legend from rendering. <a href="/misc/goto?guid=4958991341137813840">#2697</a> Thanks <a href="/misc/goto?guid=4958991341251002865">@dennybiasiolli</a></li>     <li>Fixed an issue where the chart title did not change during <code>update</code> <a href="/misc/goto?guid=4958991341371576739">#2686</a> Thanks <a href="/misc/goto?guid=4958991341502288789">@NoelOConnell</a></li>     <li>Fixed an issue with AMD builds <a href="/misc/goto?guid=4958991341607635962">#2298</a> Thanks <a href="/misc/goto?guid=4958991341734080661">@sassomedia</a></li>     <li>Fixed a typo in the tooltip docs <a href="/misc/goto?guid=4958991341844387223">#2724</a> Thanks <a href="/misc/goto?guid=4958991341961778463">@fwolfst</a></li>     <li>Fixed an issue with the tooltip font color <a href="/misc/goto?guid=4958991342078455334">#2730</a> Thanks <a href="/misc/goto?guid=4958991342197572578">@duerahan</a></li>     <li>Fixed an issue with the font family for point labels in the radial linear scale <a href="/misc/goto?guid=4958991342303093893">#2739</a> Thanks<a href="/misc/goto?guid=4958991342421398213">@msimulcik</a></li>     <li>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</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958991342541966201" rel="nofollow">Source code (zip)</a></li>     <li><a href="/misc/goto?guid=4958991342659538058" rel="nofollow">Source code (tar.gz)</a></li>    </ul>    <p> </p>