-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from palantir/dev
Merge 0.1.4 into master
- Loading branch information
Showing
13 changed files
with
108 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "plottable.js", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"dependencies": { | ||
"d3": "3.4.1" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
.demo-title { font-size: 24pt; } | ||
.quadratic-series circle { | ||
fill: red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: Plottable.js Simple Chart Demo | ||
description: Creates a chart with an x-axis, y-axis, and circle renderer | ||
authors: | ||
- Justin Lan | ||
normalize_css: no | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | ||
<script src="http://palantir.github.io/plottable/plottable.js"></script> | ||
<link rel="stylesheet" type="text/css" href="http://palantir.github.io/plottable/style.css"> | ||
|
||
<div class="demo-title">Simple Chart</div> | ||
<br> | ||
<svg id="simple-chart"></svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
window.onload = function() { | ||
function makeQuadraticSeries(numPoints) { | ||
var data = []; | ||
for (var i = 0; i< numPoints; i++) { | ||
data.push({x: i, y: i*i}); | ||
} | ||
return {data: data, seriesName: "quadratic-series"}; | ||
} | ||
|
||
var dataseries = makeQuadraticSeries(20); | ||
|
||
var svg = d3.select("#simple-chart"); | ||
svg.attr("width", 480).attr("height", 320); | ||
var xScale = new LinearScale(); | ||
var yScale = new LinearScale(); | ||
var xAxis = new XAxis(xScale, "bottom"); | ||
var yAxis = new YAxis(yScale, "left"); | ||
var renderAreaD1 = new CircleRenderer(dataseries, xScale, yScale); | ||
var basicTable = new Table([[yAxis, renderAreaD1], | ||
[null, xAxis]]); | ||
basicTable.anchor(svg).computeLayout().render(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
Plottable v0.1.3 (https://github.com/palantir/plottable) | ||
Plottable v0.1.4 (https://github.com/palantir/plottable) | ||
Copyright 2014 Palantir Technologies | ||
Licensed under MIT (https://github.com/palantir/plottable/blob/master/LICENSE) | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters