Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added valueline.js #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added valueline.js #147

wants to merge 1 commit into from

Conversation

hillwatter
Copy link

增加双数值轴曲线,可以绘制轴反转的曲线:
用法如下:
var line = new Line("chart"),
tmpXData = [],
tmpYData = [];
for (var i = 0; i < 1000; i++){
tmpXData.push(i);
tmpYData.push(Math.random());
}
var source2 = [{name:"data1",
visible: true,
data: tmpXData },
{"name":"data2",
data: tmpYData}
]
line.setSource(source2, {line: "line", x: "data1"});
line.render();

增加双数值轴曲线,可以绘制轴反转的曲线:
用法如下:
    var line = new Line("chart"),
        tmpXData = [],
        tmpYData = [];
    for (var i = 0; i < 1000; i++){
      tmpXData.push(i);
      tmpYData.push(Math.random());
    }
    var source2 = [{name:"data1",
      visible: true,
      data: tmpXData },
      {"name":"data2",
      data: tmpYData}
    ]
    line.setSource(source2, {line: "line", x: "data1"});
    line.render();
@hillwatter hillwatter changed the title Create valueline.js Added valueline.js Sep 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant