Skip to content

Added valueline.js#147

Open
hillwatter wants to merge 1 commit intoTBEDP:masterfrom
hillwatter:patch-1
Open

Added valueline.js#147
hillwatter wants to merge 1 commit intoTBEDP:masterfrom
hillwatter:patch-1

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