Skip to content

Commit

Permalink
fix demo axis3
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Chevalier committed Feb 7, 2017
1 parent db84cf0 commit b8a3387
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ <h2>Example of a timeseries rendering to canvas</h2>

<br />
<br />
<h2>Example of a timeseries rendering 40 series to canvas</h2>
<h2>Example of a timeseries rendering ~645,000 datapoints to canvas</h2>
<px-vis-timeseries
width="1000"
height="500"
Expand All @@ -295,7 +295,7 @@ <h2>Example of a timeseries rendering 40 series to canvas</h2>
}'>
</px-vis-timeseries>
<iron-ajax
url="../px-demo-data/demo-data/apm/timeseries10.json"
url="../px-demo-data/demo-data/apm/timeseries.json"
handle-as="json"
auto
last-response="{{apmData}}"
Expand Down Expand Up @@ -386,7 +386,7 @@ <h2>Example of a timeseries with a additional d3 rectangle drawn on top</h2>
aggregatedData[1]["units"] = "Hz";
aggregatedData[2]["axis"] = {"id": "axis3", "side": "left", "number": "2"};
aggregatedData[2]["units"] = "BoF";
aggregatedData[3]["axis"] = {"id": "axis3", "side": "right", "number": "2"};
aggregatedData[3]["axis"] = {"id": "axis4", "side": "right", "number": "2"};
aggregatedData[3]["units"] = "bof";
converter.set('originalData', aggregatedData);
}
Expand Down Expand Up @@ -416,13 +416,13 @@ <h2>Example of a timeseries with a additional d3 rectangle drawn on top</h2>
processData(fetch4.lastResponse);
}

// chart.svg.append('rect')
// .attr("y", 200)
// .attr("x", 0)
// .attr("height", 100)
// .attr("width", 1000)
// .attr('opacity',0.25)
// .attr('fill', 'rgb(70,173,0)');
chart.svg.append('rect')
.attr("y", 200)
.attr("x", 0)
.attr("height", 100)
.attr("width", 1000)
.attr('opacity',0.25)
.attr('fill', 'rgb(70,173,0)');

rangepicker.set('range', {
"from":"2014-04-10T04:01:00.000Z",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "px-vis-timeseries",
"author": "General Electric",
"description": "A Px visualization timeseries chart",
"version": "1.0.1",
"version": "1.0.0",
"private": true,
"extName": null,
"repository": {
Expand Down

0 comments on commit b8a3387

Please sign in to comment.