-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
1,481 additions
and
617 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Python Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools | ||
pip install -r requirements.txt | ||
python setup.py install | ||
pip install coveralls | ||
- name: Run tests | ||
run: coverage run --source=nvd3 setup.py test | ||
|
||
- name: Finish coveralls | ||
run: coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -40,6 +40,9 @@ bower.json | |
bower_components | ||
|
||
archive | ||
env | ||
myenv | ||
nvd3_env | ||
|
||
htmlcov | ||
test_*.html | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
include CONTRIBUTING.rst | ||
include HISTORY.rst | ||
include CHANGELOG.rst | ||
include LICENSE | ||
include README.rst | ||
|
||
|
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,4 @@ | ||
.. | ||
_Generated with generated_examples.sh script | ||
|
||
.. raw:: html |
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,4 @@ | ||
.. | ||
_Generated with generated_examples.sh script | ||
|
||
.. raw:: html |
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,62 @@ | ||
.. | ||
_Generated with generated_examples.sh script | ||
|
||
.. raw:: html | ||
|
||
<div id="cumulativelinechart"><svg style="height:450px;"></svg></div> | ||
|
||
|
||
<script> | ||
|
||
|
||
|
||
data_cumulativelinechart=[{"values": [{"x": 1365026400000, "y": 6}, {"x": 1365026500000, "y": 5}, {"x": 1365026600000, "y": 1}], "key": "Serie 1", "yAxis": "1"}, {"values": [{"x": 1365026400000, "y": 36}, {"x": 1365026500000, "y": 55}, {"x": 1365026600000, "y": 11}], "key": "Serie 2", "yAxis": "1"}]; | ||
|
||
nv.addGraph(function() { | ||
var chart = nv.models.cumulativeLineChart(); | ||
|
||
chart.margin({top: 30, right: 60, bottom: 20, left: 60}); | ||
chart.xAxis.rotateLabels(0) | ||
chart.xAxis.staggerLabels(false) | ||
chart.xAxis.showMaxMin(true) | ||
var datum = data_cumulativelinechart; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
chart.xAxis | ||
.tickFormat(function(d) { return d3.time.format('%d %b %Y')(new Date(parseInt(d))) } | ||
); | ||
chart.yAxis | ||
.tickFormat(d3.format(',.1%')); | ||
|
||
chart.tooltip.headerFormatter(function(d, i) { | ||
return d3.time.format("%d %b %Y")(new Date(parseInt(d))); | ||
}); | ||
|
||
chart.showLegend(true); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
d3.select('#cumulativelinechart svg') | ||
.datum(datum) | ||
.transition().duration(500) | ||
.attr('height', 450) | ||
.call(chart); | ||
|
||
|
||
|
||
}); | ||
|
||
|
||
|
||
|
||
</script> | ||
|
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,58 @@ | ||
.. | ||
_Generated with generated_examples.sh script | ||
|
||
.. raw:: html | ||
|
||
<div id="discretebarchart"><svg style="width:400px;height:400px;"></svg></div> | ||
|
||
|
||
<script> | ||
|
||
|
||
|
||
data_discretebarchart=[{"values": [{"x": "A", "y": 3}, {"x": "B", "y": 4}, {"x": "C", "y": 0}, {"x": "D", "y": -3}, {"x": "E", "y": 5}, {"x": "F", "y": 7}], "key": "Serie 1", "yAxis": "1"}]; | ||
|
||
|
||
nv.addGraph(function() { | ||
var chart = nv.models.discreteBarChart(); | ||
|
||
chart.margin({top: 30, right: 60, bottom: 20, left: 60}); | ||
chart.xAxis.rotateLabels(0) | ||
chart.xAxis.staggerLabels(false) | ||
chart.xAxis.showMaxMin(true) | ||
var datum = data_discretebarchart; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
chart.yAxis | ||
.tickFormat(d3.format(',.0f')); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
d3.select('#discretebarchart svg') | ||
.datum(datum) | ||
.transition().duration(500) | ||
.attr('width', '400') | ||
.attr('height', 400) | ||
.call(chart); | ||
|
||
|
||
|
||
|
||
}); | ||
|
||
|
||
|
||
</script> | ||
|
Oops, something went wrong.