Skip to content

Commit 66f6f31

Browse files
Merge branch 'release/4.0.0'
2 parents 2985244 + ce2f7a7 commit 66f6f31

File tree

14 files changed

+273
-329
lines changed

14 files changed

+273
-329
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
If you are trying to get a particular effect or you have a problem with your code, please ask your question [on stackoverflow.com](http://stackoverflow.com/questions/tagged/dc.js) or the [user group](https://groups.google.com/forum/?fromgroups#!forum/dc-js-user-group). We use the issue tracker for bug reports and feature requests only.
66

77
Get help faster with a working example! Fork these to get started:<br>
8-
[blank jsFiddle](https://jsfiddle.net/gordonwoodhull/rL82bguk/) - [example jsFiddle](https://jsfiddle.net/gordonwoodhull/5ztavmjy/) - [blank bl.ock](https://blockbuilder.org/gordonwoodhull/f6bab3d2f5b34018548207014b4056bf) - [example bl.ock](https://blockbuilder.org/gordonwoodhull/bcf9eaa0bfc2c84373cffac06d5755e5)
8+
[blank jsFiddle](https://jsfiddle.net/gordonwoodhull/rL82bguk/1) - [example jsFiddle](https://jsfiddle.net/gordonwoodhull/5ztavmjy/2) - [blank bl.ock](https://blockbuilder.org/gordonwoodhull/f6bab3d2f5b34018548207014b4056bf) - [example bl.ock](https://blockbuilder.org/gordonwoodhull/bcf9eaa0bfc2c84373cffac06d5755e5)
99

1010
For bug reports and feature requests submit a [github issue](http://github.com/dc-js/dc.js/issues)
1111
* Please include the version of DC you are using

Changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## 4.0.0 beta 5
1+
## 4.0.0
22
* Thanks to the diligent and careful effort of Deepak Kumar, dc.js has been ported to ES6 modules, classes and syntax.
33

4-
IE is no longer supported. dc.js will not support transpilation - stick with dc@3 for IE support.
4+
IE is no longer supported. dc.js will not support transpilation. Stick with dc@3 for IE support.
55

66
The API is mostly compatible, but there are a few breaking changes - see the [v4 upgrade guide](https://github.com/dc-js/dc.js/blob/develop/docs/dc-v4-upgrade-guide.md) for details.
77

Gruntfile.js

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function (grunt) {
1414
src: 'src',
1515
spec: 'spec',
1616
web: 'web',
17+
websrc: 'web-src',
1718
dist: 'dist',
1819
pkg: require('./package.json'),
1920
banner: grunt.file.read('./LICENSE_BANNER')
@@ -22,7 +23,7 @@ module.exports = function (grunt) {
2223
// in d3v4 and d3v5 pre-built d3.js are in different sub folders
2324
const d3pkgSubDir = config.pkg.dependencies.d3.split('.')[0].replace(/[^\d]/g, '') === '4' ? 'build' : 'dist';
2425

25-
const lintableFiles = `'${config.src}' '${config.spec}' '*.js' 'grunt/*.js' 'web-src/stock.js'`;
26+
const lintableFiles = `'${config.src}' '${config.spec}' '*.js' 'grunt/*.js' '<%= conf.websrc %>/stock.js'`;
2627

2728
const sass = require('node-sass');
2829

@@ -64,7 +65,12 @@ module.exports = function (grunt) {
6465
tasks: ['sass', 'cssmin:main', 'copy:dc-to-gh']
6566
},
6667
tests: {
67-
files: ['<%= conf.src %>/**/*.js', '<%= conf.spec %>/*.js', '<%= conf.spec %>/helpers/*.js', 'web-src/**/*', 'docs/**/*'],
68+
files: [
69+
'<%= conf.src %>/**/*.js',
70+
'<%= conf.spec %>/*.js',
71+
'<%= conf.spec %>/helpers/*.js',
72+
'<%= conf.websrc %>/**/*',
73+
'docs/**/*'],
6874
tasks: ['test']
6975
},
7076
reload: {
@@ -177,7 +183,7 @@ module.exports = function (grunt) {
177183
dist: {
178184
src: ['docs/welcome.base.md', '<%= conf.src %>/**/*.js', '!<%= conf.src %>/{banner,footer}.js'],
179185
options: {
180-
destination: 'web/docs/html',
186+
destination: '<%= conf.web %>/docs/html',
181187
template: 'node_modules/ink-docstrap/template',
182188
configure: 'jsdoc.conf.json'
183189
}
@@ -209,15 +215,15 @@ module.exports = function (grunt) {
209215
{
210216
expand: true,
211217
nonull: true,
212-
cwd: 'web-src',
218+
cwd: '<%= conf.websrc %>',
213219
src: '**',
214-
dest: 'web/'
220+
dest: '<%= conf.web %>/'
215221
},
216222
{
217223
expand: true,
218224
cwd: 'docs/old-api-docs',
219225
src: '**',
220-
dest: 'web/docs/'
226+
dest: '<%= conf.web %>/docs/'
221227
},
222228
{
223229
expand: true,
@@ -279,10 +285,10 @@ module.exports = function (grunt) {
279285
title: 'Index of dc.js examples',
280286
heading: 'Examples of using dc.js',
281287
description: 'An attempt to present a simple example of each chart type.',
282-
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.web %>/examples'
288+
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.websrc %>/examples'
283289
},
284290
files: [
285-
{dest: '<%= conf.web %>/examples/index.html', src: ['<%= conf.web %>/examples/*.html']}
291+
{dest: '<%= conf.web %>/examples/index.html', src: ['<%= conf.websrc %>/examples/*.html']}
286292
]
287293
},
288294
'transitions-listing': {
@@ -293,10 +299,10 @@ module.exports = function (grunt) {
293299
heading: 'Eyeball tests for dc.js transitions',
294300
description: 'Transitions can only be tested by eye. ' +
295301
'These pages automate the transitions so they can be visually verified.',
296-
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.web %>/transitions'
302+
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.websrc %>/transitions'
297303
},
298304
files: [
299-
{dest: '<%= conf.web %>/transitions/index.html', src: ['<%= conf.web %>/transitions/*.html']}
305+
{dest: '<%= conf.web %>/transitions/index.html', src: ['<%= conf.websrc %>/transitions/*.html']}
300306
]
301307
},
302308
'resizing-listing': {
@@ -310,10 +316,10 @@ module.exports = function (grunt) {
310316
'For the examples with a single chart taking up the entire window, you can add <code>?resize=viewbox</code> ' +
311317
'to the URL to test resizing the chart using the ' +
312318
'<a href="http://dc-js.github.io/dc.js/docs/html/dc.baseMixin.html#useViewBoxResizing__anchor">useViewBoxResizing</a> strategy.',
313-
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.web %>/resizing'
319+
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.websrc %>/resizing'
314320
},
315321
files: [
316-
{dest: '<%= conf.web %>/resizing/index.html', src: ['<%= conf.web %>/resizing/*.html']}
322+
{dest: '<%= conf.web %>/resizing/index.html', src: ['<%= conf.websrc %>/resizing/*.html']}
317323
]
318324
},
319325
'zoom-listing': {
@@ -324,10 +330,10 @@ module.exports = function (grunt) {
324330
heading: 'Interactive test for dc.js chart zoom',
325331
description: 'It\'s hard to conceive of a way to test zoom except by trying it. ' +
326332
'So this is a substitute for automated tests in this area',
327-
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.web %>/zoom'
333+
sourceLink: 'https://github.com/dc-js/dc.js/tree/master/<%= conf.websrc %>/zoom'
328334
},
329335
files: [
330-
{dest: '<%= conf.web %>/zoom/index.html', src: ['<%= conf.web %>/zoom/*.html']}
336+
{dest: '<%= conf.web %>/zoom/index.html', src: ['<%= conf.websrc %>/zoom/*.html']}
331337
]
332338
}
333339
},
@@ -367,7 +373,7 @@ module.exports = function (grunt) {
367373
' || echo \'Cowardly refusing to overwrite your existing git pre-commit hook.\''
368374
},
369375
hierarchy: {
370-
command: 'dot -Tsvg -o web-src/img/class-hierarchy.svg class-hierarchy.dot'
376+
command: 'dot -Tsvg -o <%= conf.websrc %>/img/class-hierarchy.svg class-hierarchy.dot'
371377
},
372378
rollup: {
373379
command: 'rm -rf dist/; rollup --config'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ Support
3333
*Please direct questions and support requests to Stack Overflow or the user group. When posting to Stack Overflow, use the* `[dc.js]` *and/or* `[crossfilter]` *tags - other tags are likely to draw unwanted attention.*
3434

3535
Get help faster with a working example! Fork these to get started:<br>
36-
[blank jsFiddle](https://jsfiddle.net/gordonwoodhull/rL82bguk/) - [example jsFiddle](https://jsfiddle.net/gordonwoodhull/5ztavmjy/) - [blank bl.ock](https://blockbuilder.org/gordonwoodhull/f6bab3d2f5b34018548207014b4056bf) - [example bl.ock](https://blockbuilder.org/gordonwoodhull/bcf9eaa0bfc2c84373cffac06d5755e5)
36+
[blank jsFiddle](https://jsfiddle.net/gordonwoodhull/rL82bguk/1) - [example jsFiddle](https://jsfiddle.net/gordonwoodhull/5ztavmjy/2) - [blank bl.ock](https://blockbuilder.org/gordonwoodhull/f6bab3d2f5b34018548207014b4056bf) - [example bl.ock](https://blockbuilder.org/gordonwoodhull/bcf9eaa0bfc2c84373cffac06d5755e5)
3737

3838
## Versioning
3939
Version 4.* is compatible with d3 versions 4 and 5. It is not compatible with IE. Use dc.js 3.* if you need IE support, or use dc.js 2.* if you need compatibility with d3 version 3.
4040

4141
## CDN location
4242

4343
```
44-
http://unpkg.com/dc@4/dc.js
45-
http://unpkg.com/dc@4/dc.css
44+
https://unpkg.com/dc@4/dist/dc.js
45+
https://unpkg.com/dc@4/dist/style/dc.css
4646
```
4747

4848
or copy the latest links from [CDNJS](https://cdnjs.com/libraries/dc)

docs/api-latest.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ keying function for <a href="https://github.com/d3/d3-collection/blob/master/REA
9494
together in sections. This was confusing so it has been renamed to <code>section</code>, although <code>group</code> still works.</p>
9595
<p>Examples:</p>
9696
<ul>
97-
<li><a href="http://europarl.me/dc.js/web/ep/index.html">List of members of the european parliament</a></li>
97+
<li><a href="https://dc-js.github.io/dc.js/ep/">List of members of the european parliament</a></li>
9898
</ul>
9999
</dd>
100100
<dt><a href="#DataTable">DataTable</a></dt>
@@ -115,7 +115,7 @@ Examples:</p>
115115
<ul>
116116
<li><a href="http://dc-js.github.com/dc.js/">Nasdaq 100 Index</a></li>
117117
<li><a href="http://dc-js.github.io/dc.js/examples/table-on-aggregated-data.html">dataTable on a crossfilter group</a>
118-
(<a href="https://github.com/dc-js/dc.js/blob/develop/web/examples/table-on-aggregated-data.html">source</a>)</li>
118+
(<a href="https://github.com/dc-js/dc.js/blob/master/web-src/examples/table-on-aggregated-data.html">source</a>)</li>
119119
</ul>
120120
</dd>
121121
<dt><a href="#GeoChoroplethChart">GeoChoroplethChart</a></dt>
@@ -1339,7 +1339,7 @@ keying function for [nesting](https://github.com/d3/d3-collection/blob/master/RE
13391339
together in sections. This was confusing so it has been renamed to `section`, although `group` still works.
13401340

13411341
Examples:
1342-
- [List of members of the european parliament](http://europarl.me/dc.js/web/ep/index.html)
1342+
- [List of members of the european parliament](https://dc-js.github.io/dc.js/ep/)
13431343

13441344
**Kind**: global class
13451345
**Mixes**: [<code>BaseMixin</code>](#BaseMixin)
@@ -1538,7 +1538,7 @@ together in sections. This was confusing so it has been renamed to `section`, a
15381538
Examples:
15391539
- [Nasdaq 100 Index](http://dc-js.github.com/dc.js/)
15401540
- [dataTable on a crossfilter group](http://dc-js.github.io/dc.js/examples/table-on-aggregated-data.html)
1541-
([source](https://github.com/dc-js/dc.js/blob/develop/web/examples/table-on-aggregated-data.html))
1541+
([source](https://github.com/dc-js/dc.js/blob/master/web-src/examples/table-on-aggregated-data.html))
15421542

15431543
**Kind**: global class
15441544
**Mixes**: [<code>BaseMixin</code>](#BaseMixin)

package-lock.json

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)