Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ad4fc2f
GPL draft concept
vladminsky Feb 13, 2015
30df791
Sampling practical solution
vladminsky Feb 16, 2015
b46518b
Sampling practical solution (facet)
vladminsky Feb 18, 2015
5665e74
Initialize scales [color, size, pos-ordinal]. Clever units initializa…
vladminsky Feb 19, 2015
8dbe017
Add dashboard sample
vladminsky Feb 20, 2015
419d6d2
Pie element is added to the sample dashboard
vladminsky Feb 20, 2015
c36bdce
Refactor [expr] property to [expression] object
vladminsky Feb 23, 2015
f33970a
[extract-axes] auto layout is implemented
vladminsky Feb 23, 2015
f1fc934
jshint errors are fixed
vladminsky Feb 23, 2015
be067d3
Sample streaming on tauCharts architecture
vladminsky Feb 24, 2015
dd7778f
Fix code review issues
vladminsky Feb 24, 2015
c03996e
update build for debug
Feb 24, 2015
0d30c9c
Code cleanup
Feb 24, 2015
fa30ff1
fix tests
Feb 24, 2015
f6ab41e
update grunt config
Feb 24, 2015
8b62acb
update d3 and underscore
Feb 24, 2015
921bd59
Draft d3 update pattern for cartesian coordinates
vladminsky Feb 24, 2015
ffe3d07
Fix update handler
vladminsky Feb 25, 2015
07afcc8
Add code style checker
Feb 25, 2015
d6bcbb3
Migrate to d3 update pattern
vladminsky Feb 25, 2015
a511a48
Fix merge conflicts
vladminsky Feb 25, 2015
3b5fee8
fix code style
vladminsky Feb 25, 2015
ee9cfae
fix code style in plugins
Feb 25, 2015
c3565e1
fix chart spec
Feb 25, 2015
a9a56bb
init new interval element
Feb 25, 2015
76c1be4
Extract hash function for data frame. Improve demo page
vladminsky Feb 25, 2015
b33437b
Demo pages are fixed
vladminsky Feb 25, 2015
b45b943
new interval element
Feb 26, 2015
27f9709
fix jsHint error
Feb 26, 2015
7cba7e0
Migrate line and point elements to d3 update pattern
vladminsky Feb 26, 2015
1a21ffd
add groupBy method
Mar 2, 2015
b2a1f60
Generate cell layers using d3 update pattern
vladminsky Mar 2, 2015
7031b59
rework interval drawing
Mar 2, 2015
ed14dd6
extracting d3 axis decorators
vladminsky Mar 2, 2015
503ccfb
extract d3 decorators to separate file
vladminsky Mar 3, 2015
25ca711
algebra is extracted to separate file
vladminsky Mar 3, 2015
98c484a
update interval test for new api
Mar 3, 2015
5ceb03d
remove unused code
vladminsky Mar 3, 2015
b6d3bb7
Tests stabilization
vladminsky Mar 3, 2015
01398e0
jscs errors are fixed
vladminsky Mar 3, 2015
8a04aeb
inject UnitRegistry to GPL
Mar 3, 2015
e98e67f
fix interval element
Mar 3, 2015
0daffe8
add test for interval
Mar 3, 2015
d67bc7c
add test for interval
Mar 4, 2015
834a1d8
remove safely block in test
Mar 4, 2015
38ec815
Draft spec converter
vladminsky Mar 4, 2015
a6be2ae
rework run tests
Mar 4, 2015
706b066
rework run tests
Mar 4, 2015
82f32e3
karma-sourcemap-loader
vladminsky Mar 4, 2015
5ab0f5a
add interval tests
Mar 4, 2015
7e7be88
add algebra for cross periods
vladminsky Mar 5, 2015
65737b0
spec converter for old plot charts
vladminsky Mar 5, 2015
367d0e4
jscs errors are fixed
vladminsky Mar 5, 2015
6a41fef
jshint errors are fixed
vladminsky Mar 5, 2015
3450870
add [extract axes] rule
vladminsky Mar 5, 2015
565c7f0
tests for spec converter
vladminsky Mar 10, 2015
81369ad
rework tooltip for new api
Mar 10, 2015
33ecc29
fix js hint
Mar 10, 2015
ec30350
fix js hint
Mar 10, 2015
cfce6fc
fix tests
Mar 10, 2015
b197570
avoid clear content innerHTML while resize
vladminsky Mar 10, 2015
e481205
Unify Plot to work with v1 and v2 specifications
vladminsky Mar 10, 2015
ec4867c
rework tooltip for new api
Mar 10, 2015
34f3f31
rework plugins for new api
Mar 11, 2015
c7628b0
update travis config
Mar 11, 2015
1e249b4
rework plugins for new api
Mar 11, 2015
ccfea2a
Transformer for auto calculated layout
vladminsky Mar 11, 2015
a717144
unify specification
vladminsky Mar 12, 2015
52c57f9
uncomment tests for tooltip plugins
Mar 12, 2015
2b93930
Cast dates while filter frames
vladminsky Mar 12, 2015
1d2df6b
Fix color legend
vladminsky Mar 12, 2015
58a1ef2
Fix size legend
vladminsky Mar 12, 2015
09d86ee
fix update pattern for interval element
Mar 13, 2015
353a228
Fix legend tests and plugin
vladminsky Mar 13, 2015
12532a4
Fix jshint errors. Remove console
vladminsky Mar 13, 2015
890a91c
clean up code
Mar 13, 2015
85d3def
fix karma config
Mar 13, 2015
deb2cbe
fix exports plugin
Mar 13, 2015
e95413b
fix exports plugin
Mar 13, 2015
f397442
exclude tooltip tests
Mar 13, 2015
97f8aa0
Fix trendline plugin
vladminsky Mar 13, 2015
e2589d1
fix production build
Mar 13, 2015
6b88574
uncomment api chart
Mar 13, 2015
ad44cea
fix tooltip tests
Mar 16, 2015
4baf5b4
rework events system of plugins
Mar 16, 2015
4f05a8f
rework trendline plugin on new API
vladminsky Mar 17, 2015
2fe3a78
rename "trans" to "transformations" for consistency
vladminsky Mar 18, 2015
0232a2a
Fix dimension for groupBy expression
vladminsky Mar 18, 2015
b489ea3
cleanup redundant code
vladminsky Mar 18, 2015
1c0cf7e
Remove SpecEngineFactory and UnitDomainMixin as obsolete
vladminsky Mar 18, 2015
4bbd6d8
add fallback for old api
Mar 18, 2015
d18cad3
increase code coverage
vladminsky Mar 18, 2015
2c005ae
fix tooltip plugin
Mar 19, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/* binary
build/* binary
*.js eol=lf
10 changes: 10 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"preset": "yandex",
"esnext":true,
"excludeFiles":[
"src/addons/color-brewer.js"
],
"requireLineFeedAtFileEnd":null,
"disallowMultipleVarDecl":null,
"disallowSpacesInsideParentheses":null
}
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
notifications:
slack: targetprocess:A8M6sVcJSfLnVOYtoMrPL7BA
language: node_js
before_script:
- grunt travis
node_js:
- "0.10"
- "0.12"
221 changes: 140 additions & 81 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,42 @@
/*global module:false*/
var autoprefixer = require('autoprefixer-core');
var webpack = require('webpack');
var webpackConfig = require('./config/webpack.test.config');
module.exports = function (grunt) {

// Project configuration.
var src = [
"*.js",
"**/*.js",
"!charts/bar.js",
'!tau.plugins.js',
'!tau.svg.js',
'!charts/line.js',
'!charts/scatterplot.js',
'!addons/*.js',
'!tau.charts.js',
'!class.js',
'!tau.data.js',
'!tau.data.types.js'
];
'*.js',
'**/*.js',
'!addons/*.js'
], webpackConf = {
entry: './src/tau.charts.js',
output: {
library: 'tauCharts',
libraryTarget: 'umd',
path: 'build/development',
filename: 'tauCharts.js'
},
externals: {
d3: 'd3',
_: 'underscore'
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
}
};
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
// Task configuration.
banner: [
'/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ',
'<%= grunt.template.today("yyyy-mm-dd") %>\n',
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>',
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;',
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n'
].join(''),
concat: {
options: {
banner: '<%= banner %>',
Expand All @@ -36,7 +47,11 @@ module.exports = function (grunt) {
dest: 'build/development/tauCharts.js'
},
prodJS: {
src: ['build/development/tauCharts.js', 'build/development/tauCharts.color-brewer.js', 'build/development/plugins/*.js'],
src: [
'build/development/tauCharts.js',
'build/development/tauCharts.color-brewer.js',
'build/development/plugins/*.js'
],
dest: 'build/production/tauCharts.min.js'
},
prodCSS: {
Expand All @@ -53,36 +68,37 @@ module.exports = function (grunt) {
},
compile: {
build: {
cwd: "src/",
cwd: 'src/',
src: src,
dest: "build/development/tauCharts.js"
dest: 'build/development/tauCharts.js'
},
dev: {
cwd: "src/",
cwd: 'src/',
src: src
}
},
karma: {
options: {
configFile: 'config/karma.conf.js'
},
options: {configFile: 'config/karma.conf.js'},
dev: {
reporters: ["dots"],
browsers: ["Chrome"],
singleRun: false
reporters: ['dots'],
browsers: ['Chrome'],
singleRun: false,
webpack: webpackConfig.default
},
unit: {
reporters: ["dots", "coverage"],
preprocessors: {"tau_modules/**/*.js": "coverage", "plugins/*.js": "coverage"},
webpack: webpackConfig.coverage,
reporters: [
'coverage',
'dots'
],
coverageReporter: {

type: 'html',
dir: 'coverage/'
}
}
},
uglify: {
options: {
banner: '<%= banner %>'
},
options: {banner: '<%= banner %>'},
dist: {
src: '<%= concat.prodJS.dest %>',
dest: 'build/production/tauCharts.min.js'
Expand All @@ -103,11 +119,7 @@ module.exports = function (grunt) {
}
},
postcss: {
options: {
processors: [
autoprefixer({browsers: ['last 2 version']}).postcss
]
},
options: {processors: [autoprefixer({browsers: ['last 2 version']}).postcss]},
dist: {src: 'css/*.css'}
},
copy: {
Expand Down Expand Up @@ -205,72 +217,92 @@ module.exports = function (grunt) {
'git add build/tauCharts.js',
'git add build/tauCharts.min.js'
].join('&&'),
options: {
stdout: true
}
options: {stdout: true}
}
},
jshint: {
all: {
src: [
"src/**/*.js", "Gruntfile.js"
'src/**/*.js',
'Gruntfile.js'
],
options: {
"loopfunc": true,
"esnext": true
loopfunc: true,
esnext: true
}
}
},
less: {
development: {
options: {
paths: ["less"]
},
options: {paths: ['less']},
files: {
"css/tooltip.css": "less/tooltip.less",
"css/export.css": "less/export.less",
"css/colorbrewer.css": "less/colorbrewer.less",
"css/base.css": "less/base.less",
"css/tauCharts.css": "less/tauCharts.less",
"css/layout.css": "less/layout.less",
"css/legend.css": "less/legend.less",
"css/trendline.css": "less/trendline.less"
'css/tooltip.css': 'less/tooltip.less',
'css/export.css': 'less/export.less',
'css/colorbrewer.css': 'less/colorbrewer.less',
'css/base.css': 'less/base.less',
'css/tauCharts.css': 'less/tauCharts.less',
'css/layout.css': 'less/layout.less',
'css/legend.css': 'less/legend.less',
'css/trendline.css': 'less/trendline.less'
}
}
},
clean: ['build/production/', 'build/development/'],
clean: [
'build/production/',
'build/development/'
],
bowercopy: {
options: {
// clean: true
},
options: {},
libs: {
options: {
destPrefix: "libs"
},
options: {destPrefix: 'libs'},
files: {
"d3.js": "d3/d3.js",
"underscore.js": "underscore/underscore.js",
"jquery.js": "jquery/dist/jquery.js",
"modernizer.js": "modernizer/modernizr.js",
"js-schema.js": "js-schema/js-schema.debug.js",
"es5-shim.js": "es5-shim/es5-shim.js"
'd3.js': 'd3/d3.js',
'underscore.js': 'underscore/underscore.js',
'jquery.js': 'jquery/dist/jquery.js',
'js-schema.js': 'js-schema/js-schema.debug.js',
'es5-shim.js': 'es5-shim/es5-shim.js'
}
}
},
watch: {
js: {
files: ['<%= jshint.all.src %>'],
tasks: ['jshint', 'compile:dev', 'less']
tasks: [
'jshint',
'compile:dev',
'less'
]
},
less: {
files: ['less/*.less'],
tasks: ['less']
}
},
webpack: {build: webpackConf},
'webpack-dev-server': {
options: {
webpack: webpackConf,
publicPath: '/'
},
start: {
port: 9000,
keepAlive: true,
webpack: {
devtool: 'eval',
debug: true
}
}
},
jscs: {
src: [
'plugins/*.js',
'src/**'
],
options: {config: '.jscsrc'}
}
});
// load local tasks
grunt.loadTasks("tasks");

grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
Expand All @@ -286,12 +318,39 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-rename');
grunt.loadNpmTasks('grunt-postcss');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-webpack');
grunt.loadNpmTasks('grunt-jscs');
// Default task.
//grunt.registerTask('default', ['jshint', 'qunit', 'concat', 'uglify']);
grunt.registerTask('default', ['bowercopy', 'less', 'compile:dev', 'jshint', 'watch:js']);
var buildWithoutPublish = ['bowercopy', 'less', 'postcss', 'copy:build', 'compile:build', 'concat:dist', 'concat:prodJS', 'concat:prodCSS', 'uglify', 'cssmin'];
// grunt.registerTask('default', ['jshint', 'qunit', 'concat', 'uglify']);
grunt.registerTask('default', [
'bowercopy',
'less',
'compile:dev',
'jshint',
'watch:js'
]);
var buildWithoutPublish = [
'bowercopy',
'less',
'postcss',
'copy:build',
'compile:build',
'concat:dist',
'concat:prodJS',
'concat:prodCSS',
'uglify',
'cssmin'
];
grunt.registerTask('build', buildWithoutPublish);
grunt.registerTask('publish', buildWithoutPublish.concat(['copy:copybuild', 'clean']));
grunt.registerTask('travis', ['bowercopy', 'jshint', 'build']);
grunt.registerTask('publish', buildWithoutPublish.concat([
'copy:copybuild',
'clean'
]));
grunt.registerTask('travis', [
'bowercopy',
'jshint',
'jscs',
'build'
]);
grunt.registerTask('watching', ['default']);
};
};
9 changes: 6 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@
"!license.txt"
],
"dependencies": {
"d3": "~3.4.3",
"underscore": "~1.6.0"
"d3": "~3.5.5",
"underscore": "~1.8.2"
},
"devDependencies": {
"jquery": "2.1.1",
"modernizer": "2.8.2",
"js-schema": "0.7.0",
"es5-shim": "latest",
"canvg": "https://github.com/Mavrin/canvg.git",
"FileSaver.js": "https://github.com/Mavrin/FileSaver.js.git",
"fetch": "~0.6.1",
"es6-promise": "~2.0.1"
},
"resolutions": {
"d3": "~3.5.5",
"underscore": "~1.8.2"
}
}
19 changes: 0 additions & 19 deletions config.rb

This file was deleted.

Loading