在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:HumbleSoftware/Flotr2开源软件地址:https://github.com/HumbleSoftware/Flotr2开源编程语言:JavaScript 98.4%开源软件介绍:Flotr2The Canvas graphing library. http://groups.google.com/group/flotr2/ Please fork http://jsfiddle.net/cesutherland/ZFBj5/ with your question or bug reproduction case. APIThe API consists of a primary draw method which accepts a configuration object, helper methods, and several microlibs. Example var
// Container div:
container = document.getElementById("flotr-example-graph"),
// First data series:
d1 = [[0, 3], [4, 8], [8, 5], [9, 13]],
// Second data series:
d2 = [],
// A couple flotr configuration options:
options = {
xaxis: {
minorTickFreq: 4
},
grid: {
minorVerticalLines: true
}
},
i, graph;
// Generated second data set:
for (i = 0; i < 14; i += 0.5) {
d2.push([i, Math.sin(i)]);
}
// Draw the graph:
graph = Flotr.draw(
container, // Container element
[ d1, d2 ], // Array of data series
options // Configuration options
); MicrolibsExtendingFlotr may be extended by adding new plugins and graph types. Graph TypesGraph types define how a particular chart is rendered. Examples include line, bar, pie. Existing graph types are found in PluginsPlugins extend the core of flotr with new functionality. They can add interactions, new decorations, etc. Examples include titles, labels and selection. The plugins included are found in DevelopmentThis project uses smoosh to build and jasmine
with js-imagediff to test. Tests may be executed by
jasmine-headless-webkit with
ShoutoutsThanks to Bas Wenneker, Fabien Ménager and others for all the work on the original Flotr. Thanks to Jochen Berger and Jordan Santell for their contributions to Flotr2. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论