Skip to content

Commit

Permalink
Merge pull request #2274 from palantir/release-1.0.0-rc6
Browse files Browse the repository at this point in the history
Release version 1.0.0-rc6 (--> master)
  • Loading branch information
jtlan committed Jun 10, 2015
2 parents 8a16b0f + 38760e3 commit 39ca9c2
Show file tree
Hide file tree
Showing 55 changed files with 3,359 additions and 961 deletions.
8 changes: 8 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ module.exports = function(grunt) {
var configJSON = {
pkg: grunt.file.readJSON("package.json"),
bump: bumpJSON,
umd: {
all: {
src: "plottable.js",
objectToExport: "Plottable",
// amdModuleId: "Plottable",
}
},
concat: {
header: {
src: ["license_header.txt", "plottable.js"],
Expand Down Expand Up @@ -323,6 +330,7 @@ module.exports = function(grunt) {
"concat:definitions",
"sed:definitions",
"sed:private_definitions",
"umd:all",
"concat:header",
"sed:version_number",
"definitions_prod",
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "plottable",
"description": "A library for creating charts out of D3",
"version": "1.0.0-rc5",
"version": "1.0.0-rc6",
"main": ["plottable.js", "plottable.css"],
"license": "MIT",
"ignore": [
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "plottable.js",
"description": "A library for creating charts out of D3",
"version": "1.0.0-rc5",
"version": "1.0.0-rc6",
"repository": {
"type": "git",
"url": "https://github.com/palantir/plottable.git"
Expand Down Expand Up @@ -32,6 +32,7 @@
"grunt-contrib-uglify": "~0.4.0",
"grunt-shell": "0.7.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-parallelize": "1.0.0"
"grunt-parallelize": "1.0.0",
"grunt-umd": "2.3.3"
}
}
239 changes: 93 additions & 146 deletions plottable.d.ts

Large diffs are not rendered by default.

446 changes: 188 additions & 258 deletions plottable.js

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions plottable.min.js

Large diffs are not rendered by default.

Binary file modified plottable.zip
Binary file not shown.
1 change: 0 additions & 1 deletion quicktests/overlaying/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<script src="/bower_components/jQuery/dist/jquery.js" charset="utf-8"></script>
<script src="/bower_components/d3/d3.js" charset="utf-8"></script>
<script src="/bower_components/lodash/dist/lodash.js"></script>
<script src="/quicktests/exampleUtil.js"></script>
<script src="/bower_components/svg-typewriter/svgtypewriter.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="/plottable.css">
Expand Down
14 changes: 12 additions & 2 deletions quicktests/overlaying/tests/basic/negative_stacked_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ function run(svg, data, Plottable) {
.addDataset(dataset4)
.addDataset(dataset5)
.labelsEnabled(true)
.labelFormatter(Plottable.Formatters.siSuffix())
.animated(true);

if (typeof verticalPlot.labelsFormatter === "function") {
verticalPlot.labelsFormatter(Plottable.Formatters.siSuffix());
} else {
verticalPlot.labelFormatter(Plottable.Formatters.siSuffix());
}

var horizontalPlot = new Plottable.Plots.StackedBar("horizontal");
horizontalPlot.x(function(d) { return d.earnings; }, xScale2)
.y(function(d) { return d.quarter; }, yScale2)
Expand All @@ -58,9 +63,14 @@ function run(svg, data, Plottable) {
.addDataset(dataset4)
.addDataset(dataset5)
.labelsEnabled(true)
.labelFormatter(Plottable.Formatters.siSuffix())
.animated(true);

if (typeof verticalPlot.labelsFormatter === "function") {
horizontalPlot.labelsFormatter(Plottable.Formatters.siSuffix());
} else {
horizontalPlot.labelFormatter(Plottable.Formatters.siSuffix());
}

var chart1 = new Plottable.Components.Table([
[yAxis1, verticalPlot], [null, xAxis1]
]);
Expand Down
12 changes: 8 additions & 4 deletions quicktests/overlaying/tests/functional/base_animator.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@ function run(svg, data, Plottable) {
var xAxis = new Plottable.Axes.Category(xScale, "bottom");
var yAxis = new Plottable.Axes.Numeric(yScale, "left");
var animator = new Plottable.Animators.Base();
animator.duration(1000);
animator.stepDuration(1000);
animator.maxTotalDuration(2000);
animator.maxIterativeDelay(100);
animator.iterativeDelay(100);


var vbar = new Plottable.Plots.Bar()
.x(function(d) { return d.x; }, xScale)
.y(function(d) { return d.y; }, yScale)
.attr("fill", function(d) { return d.type; }, colorScale)
.labelsEnabled(true)
.labelFormatter(function(text){return text + "!";})
.addDataset(new Plottable.Dataset(data))
.animator( "bars", animator)
.animator(Plottable.Plots.Animator.MAIN, animator)
.animated(true);
if (typeof vbar.labelsFormatter === "function") {
vbar.labelsFormatter(function(text){return text + "!";});
} else {
vbar.labelFormatter(function(text){return text + "!";});
}


var chart = new Plottable.Components.Table([
Expand Down
36 changes: 36 additions & 0 deletions quicktests/umd/app.js
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"));
});
});
16 changes: 16 additions & 0 deletions quicktests/umd/index.html
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>
Loading

0 comments on commit 39ca9c2

Please sign in to comment.