Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some html and style fixes #40

Merged
merged 1 commit into from
May 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions source/gettingstarted.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
%code.html.xml
:preserve
<span class="comment">&lt;!-- Load c3.css --&gt;</span>
<span class="tag">&lt;<span class="title">link</span> <span class="attribute">href</span>=<span class="value">"/path/to/c3.css"</span> <span class="attribute">rel</span>=<span class="value">"stylesheet"</span> <span class="attribute">type</span>=<span class="value">"text/css"</span>&gt;</span>
<span class="tag">&lt;<span class="title">link</span> <span class="attribute">href</span>=<span class="value">"/path/to/c3.css"</span> <span class="attribute">rel</span>=<span class="value">"stylesheet"</span>&gt;</span>

<span class="comment">&lt;!-- Load d3.js and c3.js --&gt;</span>
<span class="tag">&lt;<span class="title">script</span> <span class="attribute">src</span>=<span class="value">"/path/to/d3.v3.min.js"</span> <span class="attribute">charset</span>=<span class="value">"utf-8"</span>&gt;</span><span class="tag">&lt;/<span class="title">script</span>&gt;</span>
Expand All @@ -59,7 +59,7 @@
%pre
%code.html.xml
:preserve
<span class="tag">&lt;<span class="title">div</span> <span class="attribute">id</span>=<span class="value">"chart"</span><span class="tag">&gt;<span class="tag">&lt;/<span class="title">div</span>&gt;</span>
<span class="tag">&lt;<span class="title">div</span> <span class="attribute">id</span>=<span class="value">"chart"</span>&gt;&lt;/<span class="title">div</span>&gt;</span>

%p And, call <span class="code">generate()</span> with arguments:

Expand Down
2 changes: 1 addition & 1 deletion source/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@

%h3 Dependency
%ul
%li <a href="https://github.com/mbostock/d3" target="_blank">D3.js</a> <span class="code">&lt;=3.5.0</span>
%li <a href="https://github.com/mbostock/d3" target="_blank">D3.js</a> <span class="code">~3.5.0</span>

%h3 License
%p MIT
Expand Down
5 changes: 0 additions & 5 deletions source/js/d3-3.4.3.min.js

This file was deleted.

Empty file modified source/js/d3-3.5.0.min.js
100755 → 100644
Empty file.
58 changes: 29 additions & 29 deletions source/reference.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@

%li Line
= partial :reference_menu_item, locals: { id: 'line.connectNull' }
= partial :reference_menu_item, locals: { id: 'line.step_type' }
= partial :reference_menu_item, locals: { id: 'line.step.type' }

%li Area
= partial :reference_menu_item, locals: { id: 'area.zerobased' }
Expand Down Expand Up @@ -638,11 +638,11 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site1.com', upload: 200, download: 200, total: 400},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site2.com', upload: 100, download: 300, total: 400},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site3.com', upload: 300, download: 200, total: 500},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site4.com', upload: 400, download: 100, total: 500},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site4.com', upload: 400, download: 100, total: 500}
&nbsp;&nbsp;&nbsp;&nbsp;],
&nbsp;&nbsp;&nbsp;&nbsp;keys: {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// x: 'name', // it's possible to specify 'x' when category axis
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value: ['upload', 'download'],
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value: ['upload', 'download']
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;},
&nbsp;&nbsp;axis: {
Expand All @@ -668,7 +668,7 @@
&nbsp;&nbsp;[50, 200, 290],
&nbsp;&nbsp;[120, 160, 230],
&nbsp;&nbsp;[80, 130, 300],
&nbsp;&nbsp;[90, 220, 320],
&nbsp;&nbsp;[90, 220, 320]
]
%hr

Expand Down Expand Up @@ -711,11 +711,11 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site1.com', upload: 200, download: 200, total: 400},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site2.com', upload: 100, download: 300, total: 400},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site3.com', upload: 300, download: 200, total: 500},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site4.com', upload: 400, download: 100, total: 500},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{name: 'www.site4.com', upload: 400, download: 100, total: 500}
&nbsp;&nbsp;&nbsp;&nbsp;],
&nbsp;&nbsp;&nbsp;&nbsp;keys: {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// x: 'name', // it's possible to specify 'x' when category axis
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value: ['upload', 'download'],
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value: ['upload', 'download']
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;},
&nbsp;&nbsp;axis: {
Expand Down Expand Up @@ -766,7 +766,7 @@
data: {
&nbsp;&nbsp;xs: {
&nbsp;&nbsp;&nbsp;&nbsp;data1: 'x1',
&nbsp;&nbsp;&nbsp;&nbsp;data2: 'x2',
&nbsp;&nbsp;&nbsp;&nbsp;data2: 'x2'
&nbsp;&nbsp;}
}
%h5 Example:
Expand Down Expand Up @@ -821,7 +821,7 @@
data: {
&nbsp;&nbsp;names: {
&nbsp;&nbsp;&nbsp;&nbsp;data1: 'Data Name 1',
&nbsp;&nbsp;&nbsp;&nbsp;data2: 'Data Name 2',
&nbsp;&nbsp;&nbsp;&nbsp;data2: 'Data Name 2'
&nbsp;&nbsp;}
}
%h5 Example:
Expand All @@ -845,7 +845,7 @@
data: {
&nbsp;&nbsp;classes: {
&nbsp;&nbsp;&nbsp;&nbsp;data1: 'additional-data1-class',
&nbsp;&nbsp;&nbsp;&nbsp;data2: 'additional-data2-class',
&nbsp;&nbsp;&nbsp;&nbsp;data2: 'additional-data2-class'
&nbsp;&nbsp;}
}
%hr
Expand All @@ -863,7 +863,7 @@
data: {
&nbsp;&nbsp;groups: [
&nbsp;&nbsp;&nbsp;&nbsp;['data1', 'data2'],
&nbsp;&nbsp;&nbsp;&nbsp;['data3'],
&nbsp;&nbsp;&nbsp;&nbsp;['data3']
&nbsp;&nbsp;]
}
%h5 Example:
Expand Down Expand Up @@ -1202,9 +1202,9 @@
= partial :reference_item_link, locals: { id: 'data.selection.multiple' }
%p Set multiple data points selection enabled.
%br
%p If this option set <code>true</code>, multile data points can have the selected state at the same time. If <code>false</code> set, only one data point can have the selected state and the others will be unselected when the new data point is selected.
%p If this option set <code>true</code>, multiple data points can have the selected state at the same time. If <code>false</code> set, only one data point can have the selected state and the others will be unselected when the new data point is selected.
%h5 Default:
<code>false</code>
<code>true</code>
%h5 Format:
%div.sourcecode
%pre
Expand Down Expand Up @@ -1714,7 +1714,7 @@
&nbsp;&nbsp;x: {
&nbsp;&nbsp;&nbsp;&nbsp;padding: {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left: 0,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right: 0,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right: 0
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
}
Expand Down Expand Up @@ -1796,8 +1796,8 @@
axis: {
&nbsp;&nbsp;x: {
&nbsp;&nbsp;&nbsp;&nbsp;label: {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text: 'Your X Axis',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position: 'outer-center',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: 'Your X Axis',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: 'outer-center'
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
}
Expand Down Expand Up @@ -1954,8 +1954,8 @@
axis: {
&nbsp;&nbsp;y: {
&nbsp;&nbsp;&nbsp;&nbsp;label: {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text: 'Your Y Axis',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position: 'outer-middle',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: 'Your Y Axis',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: 'outer-middle'
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
}
Expand Down Expand Up @@ -2236,8 +2236,8 @@
axis: {
&nbsp;&nbsp;y2: {
&nbsp;&nbsp;&nbsp;&nbsp;label: {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text: 'Your Y2 Axis',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position: 'outer-middle',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: 'Your Y2 Axis',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: 'outer-middle'
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
}
Expand Down Expand Up @@ -2410,7 +2410,7 @@
&nbsp;&nbsp;x: {
&nbsp;&nbsp;&nbsp;&nbsp;lines: [
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 2, text: 'Label on 2'},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 5, text: 'Label on 5', class: 'label-5'}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 5, text: 'Label on 5', class: 'label-5'},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 6, text: 'Label on 6', position: 'start'}
&nbsp;&nbsp;&nbsp;&nbsp;]
&nbsp;&nbsp;}
Expand Down Expand Up @@ -2459,7 +2459,7 @@
&nbsp;&nbsp;y: {
&nbsp;&nbsp;&nbsp;&nbsp;lines: [
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 100, text: 'Label on 100'},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 200, text: 'Label on 200', class: 'label-200'}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 200, text: 'Label on 200', class: 'label-200'},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{value: 300, text: 'Label on 300', position: 'middle'}
&nbsp;&nbsp;&nbsp;&nbsp;]
&nbsp;&nbsp;}
Expand Down Expand Up @@ -2490,7 +2490,7 @@
%pre
%code.html.javascript
regions: [
&nbsp;&nbsp;{axis: 'x', start: 1, end: 4, class: 'region-1-4'},
&nbsp;&nbsp;{axis: 'x', start: 1, end: 4, class: 'region-1-4'}
]
%h5 Example:
%ul
Expand Down Expand Up @@ -2587,7 +2587,7 @@
%code.html.javascript
legend: {
&nbsp;&nbsp;inset: {
&nbsp;&nbsp;&nbsp;&nbsp;anchor: 'top-right'
&nbsp;&nbsp;&nbsp;&nbsp;anchor: 'top-right',
&nbsp;&nbsp;&nbsp;&nbsp;x: 20,
&nbsp;&nbsp;&nbsp;&nbsp;y: 10,
&nbsp;&nbsp;&nbsp;&nbsp;step: 2
Expand Down Expand Up @@ -2780,7 +2780,7 @@
%code.html.javascript
tooltip: {
&nbsp;&nbsp;position: function (data, width, height, element) {
&nbsp;&nbsp;&nbsp;&nbsp;return {top: 0, left: 0}
&nbsp;&nbsp;&nbsp;&nbsp;return {top: 0, left: 0};
&nbsp;&nbsp;}
}
%h5 Reference:
Expand Down Expand Up @@ -3067,12 +3067,12 @@

%section
%h3
= partial :reference_item_link, locals: { id: 'line.step_type' }
= partial :reference_item_link, locals: { id: 'line.step.type' }
%p Change step type for step chart.
%br
%p <span class="code">step</span>, <span class="code">step-before</span> and <span class="code">step-after</span> can be used.
%h5 Default:
<code>step</code>
<code>'step'</code>
%h5 Format:
%div.sourcecode
%pre
Expand Down Expand Up @@ -3746,7 +3746,7 @@
&nbsp;&nbsp;&nbsp;&nbsp;['x', '2013-01-11', '2013-01-21'],
&nbsp;&nbsp;&nbsp;&nbsp;['data1', 500, 200],
&nbsp;&nbsp;&nbsp;&nbsp;['data2', 100, 300],
&nbsp;&nbsp;&nbsp;&nbsp;['data3', 200, 120],
&nbsp;&nbsp;&nbsp;&nbsp;['data3', 200, 120]
&nbsp;&nbsp;],
&nbsp;&nbsp;done: function () {
&nbsp;&nbsp;&nbsp;&nbsp;chart.flow({
Expand All @@ -3756,7 +3756,7 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;['data2', 100, 90, 40, 120],
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;['data3', 100, 100, 300, 500]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;length: 0,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;length: 0
&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;}
});
Expand Down Expand Up @@ -4461,7 +4461,7 @@
&nbsp;&nbsp;&nbsp;&nbsp;x: 100,
&nbsp;&nbsp;&nbsp;&nbsp;y: 1000,
&nbsp;&nbsp;&nbsp;&nbsp;y2: 10000
&nbsp;&nbsp;},
&nbsp;&nbsp;}
});
%ul
%li
Expand Down