Skip to content

Commit bb09a6e

Browse files
authored
Fix docs and showcase links with the new packages structure (#1341)
1 parent b54ab8a commit bb09a6e

15 files changed

+135
-231
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<!-- INJECT:"ForceDirectedGraph" -->
22

3-
[Source code](https://github.com/uber/react-vis/blob/master/showcase/examples/force-directed-graph/force-directed-graph.js)
3+
[Source code](https://github.com/uber/react-vis/blob/master/packages/showcase/examples/force-directed-graph/force-directed-graph.js)

docs/examples/extensibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
react-vis is easily extensible! If we don't have what you want it's easy to make! For instance, the above chart
77
was made by simply extending abstract series and adding a little sugar.
88

9-
[Source code](https://github.com/uber/react-vis/blob/master/showcase/examples/candlestick/candlestick.js)
9+
[Source code](https://github.com/uber/react-vis/blob/master/packages/showcase/examples/candlestick/candlestick.js)

docs/examples/iris-dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ The iris data set is a well beloved data set for getting to know various technic
77
Here we use it to show how to make a small multiples dashboard with react vis.
88
You can find out more about it at it's [wikipedia page](https://en.wikipedia.org/wiki/Iris_flower_data_set)
99

10-
[Source code](https://github.com/uber/react-vis/blob/master/showcase/examples/iris-dashboard/iris-dashboard.js)
10+
[Source code](https://github.com/uber/react-vis/blob/master/packages/showcase/examples/iris-dashboard/iris-dashboard.js)

docs/examples/responsive-vis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ This demo explores the concept of "Responsive Data Visualization" (As coined by
55

66
In data visualization, we often need to create applications that work with enormous ranges of sizes of data. Sometimes the data might be small (10 - 100 rows), or it might be gigantic (100k-1M+ row): throughout the entire range it just needs to work. Again, following our cues from responsive design, we note that maybe labels on scatterplots look great when you have under 50 data points, but bad when you have 2000. Checkout Nicks [original demo](http://nrabinowitz.github.io/rdv/) for more details on the theory, as well to see his rad implementation in raw d3.
77

8-
[Scatterplot source code](https://github.com/uber/react-vis/blob/master/showcase/examples/responsive-vis/responsive-scatterplot.js)
8+
[Scatterplot source code](https://github.com/uber/react-vis/blob/master/packages/showcase/examples/responsive-vis/responsive-scatterplot.js)
99

10-
[Barchart source code](https://github.com/uber/react-vis/blob/master/showcase/examples/responsive-vis/responsive-bar-chart.js)
10+
[Barchart source code](https://github.com/uber/react-vis/blob/master/packages/showcase/examples/responsive-vis/responsive-bar-chart.js)

docs/examples/stream-graph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<!-- STYLETYPE:"example-page" -->
22
<!-- INJECT:"StreamgraphExample" -->
33

4-
[Source code](https://github.com/uber/react-vis/blob/master/showcase/examples/streamgraph/streamgraph-example.js)
4+
[Source code](https://github.com/uber/react-vis/blob/master/packages/showcase/examples/streamgraph/streamgraph-example.js)

docs/sunburst.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ Tooltips and other helpful annotations can be added to the sunburst diagram by p
7575
hideRootNode
7676
colorType="literal"
7777
data={data}
78-
height={300}
78+
height={300}
7979
width={350}>
8080
<Hint value={hoveredValue} />
8181
</Sunburst>
8282
```
8383

84-
Where `hoveredValue` is an appropriately curated coordinate value. See the [sunburst-with-tooltips](https://github.com/uber/react-vis/blob/master/showcase/sunbursts/sunburst-with-tooltips.js) code for more details.
84+
Where `hoveredValue` is an appropriately curated coordinate value. See the [sunburst-with-tooltips](https://github.com/uber/react-vis/blob/master/packages/showcase/sunbursts/sunburst-with-tooltips.js) code for more details.
8585

8686
## API Reference
8787

packages/showcase/showcase-links.js

Lines changed: 95 additions & 180 deletions
Large diffs are not rendered by default.

packages/showcase/showcase-sections/misc-showcase.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import {mapSection} from '../showcase-components/showcase-utils';
33
import {showCase} from '../index';
4+
import {SHOWCASE_BASE_URL, REACTVIS_BASE_URL} from '../showcase-links';
45
const {
56
AnimationExample,
67
LabelSeriesExample,
@@ -31,8 +32,7 @@ const MISC = [
3132
name: 'Polygon Example',
3233
component: TriangleExample,
3334
componentName: 'TriangleExample',
34-
sourceLink:
35-
'https://github.com/uber/react-vis/blob/master/src/plot/series/polygon-series.js',
35+
sourceLink: `${REACTVIS_BASE_URL}/src/plot/series/polygon-series.js`,
3636
docsLink:
3737
'http://uber.github.io/react-vis/documentation/series-reference/polygon-series'
3838
},
@@ -45,8 +45,7 @@ const MISC = [
4545
name: 'Gradient & Custom Border Example',
4646
component: GradientExample,
4747
componentName: 'GradientExample',
48-
sourceLink:
49-
'https://github.com/uber/react-vis/blob/master/showcase/misc/gradient-example.js',
48+
sourceLink: `${SHOWCASE_BASE_URL}/misc/gradient-example.js`,
5049
docsLink:
5150
'http://uber.github.io/react-vis/documentation/api-reference/gradients'
5251
},
@@ -55,14 +54,13 @@ const MISC = [
5554
component: AnimationExample,
5655
componentName: 'AnimationExample',
5756
docsLink:
58-
'http://uber.github.io/react-vis/documentation/general-principles/animation'
57+
'http://uber.github.io/react-vis/documentation/series-reference/label-series'
5958
},
6059
{
6160
name: 'Label Series Example',
6261
component: LabelSeriesExample,
6362
componentName: 'LabelSeriesExample',
64-
sourceLink:
65-
'https://github.com/uber/react-vis/blob/master/src/plot/series/label-series.js',
63+
sourceLink: `${SHOWCASE_BASE_URL}/src/plot/series/label-series.js`,
6664
docsLink:
6765
'http://uber.github.io/react-vis/documentation/series-reference/label-series'
6866
},

packages/showcase/showcase-sections/parallel-coordinates-showcase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22

33
import {mapSection} from '../showcase-components/showcase-utils';
44
import {showCase} from '../index';
5+
import {REACTVIS_BASE_URL} from '../index';
56
const {
67
AnimatedParallelCoordinates,
78
BasicParallelCoordinates,
@@ -14,8 +15,7 @@ const PARALLEL_COORDINATES = [
1415
name: 'Basic Parallel Coordinates',
1516
component: BasicParallelCoordinates,
1617
componentName: 'BasicParallelCoordinates',
17-
sourceLink:
18-
'https://github.com/uber/react-vis/blob/master/src/radar-chart/index.js',
18+
sourceLink: `${REACTVIS_BASE_URL}/radar-chart/index.js`,
1919
docsLink:
2020
'http://uber.github.io/react-vis/documentation/other-charts/radar-chart'
2121
},

packages/showcase/showcase-sections/plots-showcase.js

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import {showCase} from '../index';
4+
import {REACTVIS_BASE_URL} from '../showcase-links';
45
import {mapSection} from '../showcase-components/showcase-utils';
56
const {
67
AreaChart,
@@ -45,26 +46,23 @@ const PLOTS = [
4546
component: LineChart,
4647
componentName: 'LineChart',
4748
name: 'Line Series',
48-
sourceLink:
49-
'https://github.com/uber/react-vis/blob/master/src/plot/series/line-series.js',
49+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/line-series.js`,
5050
docsLink:
5151
'http://uber.github.io/react-vis/documentation/series-reference/line-series'
5252
},
5353
{
5454
component: LineChartWithStyle,
5555
componentName: 'LineChartWithStyle',
5656
name: 'Line Series with style',
57-
sourceLink:
58-
'https://github.com/uber/react-vis/blob/master/src/plot/series/line-series.js',
57+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/line-series.js`,
5958
docsLink:
6059
'http://uber.github.io/react-vis/documentation/series-reference/line-series'
6160
},
6261
{
6362
component: LineMarkChart,
6463
componentName: 'LineMarkChart',
6564
name: 'LineMark Series',
66-
sourceLink:
67-
'https://github.com/uber/react-vis/blob/master/src/plot/series/line-mark-series.js',
65+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/line-mark-series.js`,
6866
docsLink:
6967
'http://uber.github.io/react-vis/documentation/series-reference/line-mark-series'
7068
},
@@ -87,8 +85,7 @@ const PLOTS = [
8785
component: ScatterplotChart,
8886
componentName: 'ScatterplotChart',
8987
name: 'Mark Series',
90-
sourceLink:
91-
'https://github.com/uber/react-vis/blob/master/src/plot/series/mark-series.js',
88+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/mark-series.js`,
9289
docsLink:
9390
'http://uber.github.io/react-vis/documentation/series-reference/mark-series'
9491
},
@@ -101,17 +98,15 @@ const PLOTS = [
10198
component: WhiskerChart,
10299
componentName: 'WhiskerChart',
103100
name: 'Whisker Series',
104-
sourceLink:
105-
'https://github.com/uber/react-vis/blob/master/src/plot/series/whisker-series.js',
101+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/whisker-series.js`,
106102
docsLink:
107103
'http://uber.github.io/react-vis/documentation/series-reference/whisker-series'
108104
},
109105
{
110106
component: AreaChart,
111107
componentName: 'AreaChart',
112108
name: 'Area Series',
113-
sourceLink:
114-
'https://github.com/uber/react-vis/blob/master/src/plot/series/area-series.js'
109+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/area-serie.js`
115110
},
116111
{
117112
component: AreaChartElevated,
@@ -124,8 +119,7 @@ const PLOTS = [
124119
component: BarChart,
125120
componentName: 'BarChart',
126121
name: 'Bar Series',
127-
sourceLink:
128-
'https://github.com/uber/react-vis/blob/master/src/plot/series/bar-series.js',
122+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/bar-series.js`,
129123
docsLink:
130124
'http://uber.github.io/react-vis/documentation/series-reference/bar-series'
131125
},
@@ -177,17 +171,15 @@ const PLOTS = [
177171
name: 'Heatmap Series',
178172
component: HeatmapChart,
179173
componentName: 'HeatmapChart',
180-
sourceLink:
181-
'https://github.com/uber/react-vis/blob/master/src/plot/series/heatmap-series.js',
174+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/heatmap-series.js`,
182175
docsLink:
183176
'http://uber.github.io/react-vis/documentation/series-reference/heatmap-series'
184177
},
185178
{
186179
name: 'Hexbin Series',
187180
component: HexHeatmap,
188181
componentName: 'HexHeatmap',
189-
sourceLink:
190-
'https://github.com/uber/react-vis/blob/master/src/plot/series/hexbin-series.js',
182+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/hexbin-series.js`,
191183
docsLink:
192184
'http://uber.github.io/react-vis/documentation/series-reference/hexbin-series'
193185
},
@@ -200,8 +192,7 @@ const PLOTS = [
200192
name: 'Labeled Heatmap',
201193
component: LabeledHeatmap,
202194
componentName: 'LabeledHeatmap',
203-
sourceLink:
204-
'https://github.com/uber/react-vis/blob/master/src/plot/series/heatmap-series.js'
195+
sourceLink: `${REACTVIS_BASE_URL}/plot/series/heatmap-serie.js`
205196
},
206197
{
207198
name: 'Contour Series',
@@ -250,8 +241,7 @@ const BASIC_COMPONENTS = [
250241
name: 'Circular Gridlines',
251242
component: FauxScatterplotChart,
252243
componentName: 'FauxScatterplotChart',
253-
sourceLink:
254-
'https://github.com/uber/react-vis/blob/master/src/plot/circular-grid-lines.js',
244+
sourceLink: `${REACTVIS_BASE_URL}/plot/circular-grid-lines.js`,
255245
docsLink:
256246
'http://uber.github.io/react-vis/documentation/api-reference/grids'
257247
}
@@ -268,6 +258,7 @@ function PlotsShowcase(props) {
268258
</section>
269259
)}
270260
<h2>Series Types</h2>
261+
271262
{PLOTS.map(mapSection)}
272263
<h2>Basic Components</h2>
273264
{BASIC_COMPONENTS.map(mapSection)}

0 commit comments

Comments
 (0)