-
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 #2274 from palantir/release-1.0.0-rc6
Release version 1.0.0-rc6 (--> master)
- Loading branch information
Showing
55 changed files
with
3,359 additions
and
961 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/*jshint strict:false */ | ||
|
||
var require; | ||
|
||
require.config({ | ||
paths: { | ||
d3: "../../bower_components/d3/d3", | ||
plottable: "../../plottable" | ||
} | ||
}); | ||
|
||
require(["d3"], function(d3) { | ||
require(["plottable"], function(Plottable) { | ||
var dataset1 = new Plottable.Dataset([ | ||
{ name: "A", value: 2 }, | ||
{ name: "B", value: 5 }, | ||
{ name: "C", value: 3 } | ||
]); | ||
|
||
var xScale = new Plottable.Scales.Category(); | ||
var xAxis = new Plottable.Axes.Category(xScale, "bottom"); | ||
var yScale = new Plottable.Scales.Linear(); | ||
var yAxis = new Plottable.Axes.Numeric(yScale, "left"); | ||
|
||
var plot = new Plottable.Plots.Bar("vertical"); | ||
plot.addDataset(dataset1); | ||
plot.x(function(d) { return d.name; }, xScale); | ||
plot.y(function(d) { return d.value; }, yScale); | ||
|
||
var chart = new Plottable.Components.Table([ | ||
[yAxis, plot], | ||
[null, xAxis] | ||
]); | ||
chart.renderTo(d3.select("#chart")); | ||
}); | ||
}); |
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,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>RequireJS loading</title> | ||
<link rel="stylesheet" type="text/css" href="../../plottable.css"> | ||
<style> | ||
body { background-color: #AAA; } | ||
svg { background-color: #FFF; } | ||
</style> | ||
<script src="lib/require.js" data-main="app"></script> | ||
</head> | ||
<body> | ||
<svg id="chart" width="640" height="480"></svg> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.