Skip to content
Permalink
Browse files

Port X3DOM components and charts from d3-ez.

  • Loading branch information
jamesleesaunders committed Sep 8, 2018
1 parent 64edde6 commit 93781754602002898eb58bd8c3f77eacc8505953
Showing with 12,175 additions and 94 deletions.
  1. +4 −0 .gitignore
  2. +21 −0 CONTRIBUTING.md
  3. +94 −94 LICENSE → LICENSE.md
  4. +32 −0 Makefile
  5. +50 −0 build/d3-x3d.css
  6. +1,537 −0 build/d3-x3d.js
  7. +1 −0 build/d3-x3d.min.js
  8. BIN build/d3-x3d.zip
  9. +296 −0 config/.eslintrc.json
  10. +26 −0 config/Atom_Beautify_Config.json
  11. +166 −0 config/WebStorm_CodeStyle_Scheme.xml
  12. +25 −0 css/barChart.css
  13. +12 −0 css/bubbleChart.css
  14. +18 −0 css/candleSticks.css
  15. +19 −0 css/donutChart.css
  16. +48 −0 css/global.css
  17. +23 −0 css/heatMapRadial.css
  18. +16 −0 css/heatMapTable.css
  19. +62 −0 css/htmlList.css
  20. +28 −0 css/htmlTable.css
  21. +21 −0 css/lineChart.css
  22. +38 −0 css/polarAreaChart.css
  23. +17 −0 css/punchCard.css
  24. +12 −0 css/roseChart.css
  25. +55 −0 examples/3dBarChart.html
  26. +62 −0 examples/3dScatterPlot.html
  27. +74 −0 examples/3dSurfaceArea.html
  28. +274 −0 examples/data/bitcoin_price.json
  29. +61 −0 examples/data/exchange_rates.csv
  30. +143 −0 examples/data/hans_rosling_2007.csv
  31. +399 −0 examples/data/netflix_isp_speed_index.json
  32. +217 −0 examples/data/nightingale_rose.json
  33. +43 −0 examples/data/plant_family_tree.json
  34. +64 −0 examples/data/random_data.js
  35. +17 −0 examples/data/stackoverflow_survey_2015.json
  36. +46 −0 examples/data/uk_elections.json
  37. +2,530 −0 examples/data/world_temperatures.json
  38. BIN examples/data/world_temperatures.xlsx
  39. +26 −0 index.js
  40. +3,588 −0 package-lock.json
  41. +54 −0 package.json
  42. +38 −0 rollup.config.js
  43. +9 −0 src/chart.js
  44. +178 −0 src/chart/x3dBarChart.js
  45. +178 −0 src/chart/x3dScatterPlot.js
  46. +184 −0 src/chart/x3dSurfaceArea.js
  47. +13 −0 src/component.js
  48. +226 −0 src/component/x3dAxis.js
  49. +149 −0 src/component/x3dBars.js
  50. +148 −0 src/component/x3dBarsMulti.js
  51. +155 −0 src/component/x3dBubbles.js
  52. +180 −0 src/component/x3dSurfaceArea.js
  53. +312 −0 src/dataTransform.js
  54. +16 −0 test/coreTest.js
  55. +155 −0 test/dataTransformTest.js
  56. +15 −0 test/x3dAxisTest.js
@@ -0,0 +1,4 @@
node_modules
npm-debug.log
.DS_Store
.idea
@@ -0,0 +1,21 @@
# d3-ez
## Contributing Guidelines

**d3-ez** is a library of reusable graphs and charts which use [D3](http://www.d3js.org/).

The `build/d3-ez.js` and `build/d3-ez.css` files are built from source files in the `src` directory.
Do NOT edit the `build` files directly, but rather edit the `src` files and then run `make` or `npm test` to generate the `build` files.

## Code Styles

To ensure **d3-ez** code formatting is kept standard, IDE configuration files for PHPStorm and Atom can be found in the `config` directory. If contributing to **d3-ez** please code formatting is maintained as per these standards.

* Atom Beautify Config
* Copy `config/Atom_Beautify_Confg.json` to a file called `.jsbeautifyrc` in the project root.
* Also See: https://atom.io/packages/atom-beautify#configuration

* WebStorm Config
* In WebStorm, select `Preferences` -> `Editor` -> `Code Styles` -> `JavaScript` -> `Scheme` -> `Import Scheme` -> `config/WebStorm_CodeStyle_Scheme.xml`
* Also See: https://www.jetbrains.com/help/webstorm/copying-code-style-settings.html

Please feel free to contribute code style configuration files for other popular IDEs.

Large diffs are not rendered by default.

@@ -0,0 +1,32 @@
# d3-x3d Makefile

CSS_FILES := css/global.css

GENERATED_FILES := build/d3-x3d.js \
build/d3-x3d.min.js \
build/d3-x3d.css \
README.md \
LICENSE.md

all: js css min zip
.PHONY: js css min zip

js:
@echo Compiling JS Files...
@rm -f build/d3-x3d.js
@rollup -c

css: $(CSS_FILES)
@echo Concatenating CSS Files...
@rm -f build/d3-x3d.css
@for file in $^; do cat "$$file"; echo "\n"; done > build/d3-x3d.css

min:
@echo Minifying...
@rm -f build/d3-x3d.min.js
@uglifyjs build/d3-x3d.js > build/d3-x3d.min.js

zip: $(GENERATED_FILES)
@echo Zipping...
@rm -f build/d3-x3d.zip
@zip -qj build/d3-x3d.zip $^
@@ -0,0 +1,50 @@
/**
* d3-ez
*
* @author James Saunders [james@saunders-family.net]
* @copyright Copyright (C) 2018 James Saunders
* @license GPLv2
*/

/* === Global Styles === */

.d3ez {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 10px;
}

/* === Axis Styles === */

.d3ez .axis path, .axis line {
fill: none;
stroke: #b6b6b6;
shape-rendering: crispEdges;
}

.d3ez .tick text {
fill: #000000;
}

/* === Title === */

.d3ez #titleGroup text {
fill: #000000;
}

.d3ez text.title {
font-size: 14px;
font-weight: bold;
}

.d3ez text.subTitle {
font-size: 12px;
}

/* === Credit Label === */

.d3ez #creditTag text {
cursor: pointer;
fill: #cccccc;
}


0 comments on commit 9378175

Please sign in to comment.
You can’t perform that action at this time.