Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
[terra-graphs-docs] corrected imports in examples (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdadn authored Apr 19, 2024
1 parent c8e7190 commit 1adae24
Show file tree
Hide file tree
Showing 109 changed files with 4 additions and 112 deletions.
1 change: 1 addition & 0 deletions packages/terra-graphs-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Moved the _Getting Started_ page to the top level.
* Renamed _Core Configuration_ to _Core Concepts_.
* Added `src` to the published files list for rendering example code correctly.
* Corrected Carbon imports in examples.

## 1.9.3 - (April 9, 2024)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is the graph with multiple bar contents grouped together.
## Usage
```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<BarGraph />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This is a simple bar graph with negative x-axis ticks.
## Usage
```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<BarGraph />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is graph with multiple datasets stacked up.
## Usage
```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<BarGraph />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This is a timeseries bar graph with a dateline.
## Usage
```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<BarGraph />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This is a timeseries bar graph with eventlines.
## Usage
```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<BarGraph />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a grouped bar graph with goal lines.
## Usage
```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<BarGraph />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This is a simple bar graph with goal lines .
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a stacked bar graph with goal lines .
## Usage
```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<BarGraph />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This is a bar graph example that implements panning with dynamic data.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a bar graph example that implements panning with a dynamic eventline.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a bar graph example with panning.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ A Bar graph can be plotted as follows:

```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
const graph = Carbon.api.graph(/* graph config JSON */);
graph.loadContent(Carbon.api.bar(/* dataset 1 */));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ A bubble graph can be plotted as follows:

```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';

const graph = Carbon.api.graph(/* graph config JSON */);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ A bubble graph with custom bubble weights.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This is a Bubble graph example that implements panning with dynamic data.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This is a bubble graph example that implements panning with multiple datasets.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a bubble graph example that implements panning.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Single dataset bubble graphs that show datasets based on color and or weight.

```jsx
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ A Combination graph can be plotted as follows:

```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
const graph = Carbon.api.graph(/* graph config JSON */);
graph.loadContent(Carbon.api.line(/* dataset 1 */));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a simple Line Graph combined with multiple Bubble dataset.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a simple Line Graph combined with Paired Result.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a simple Line Graph combined with single Bubble dataset.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a simple Paired result Graph combined with Scatter.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a combination graph associated with identical regions.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a combination graph associated with simple region.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ It can by toggled on/off by using the appropriate `allowCalibration` label.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Axis hidden contains simple graph examples with hidden x and y axes.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Axis ticks contains simple graph examples with static x-axis ticks, formatted ti
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a timeseries line graph with datetime formatted bucket.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Label hidden contains simple graph examples related to label like label hidden a
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a simple timeseries line graph with German(de_DE) locale.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is a simple timeseries line graph with x-axis locates on top of the graph.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This is a simple timeseries line graph with x-axis ticks label orientation `tick
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Grid contains graph examples related to hiding horizontal and vertical grid.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Legend contains simple line graph examples with different ways to use legend lik
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is Simple line graph with '#176ba0' as background color.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is simple graph with no data in it.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is timeseries line graph with custom legend placement.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This is timeseries line graph with reduced padding.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,15 @@ const DynamicallyUpdatingDataExample = () => {
};

const handleClickUpdateData = () => {
// graph.config.axis.y.domain.lowerLimit = 0;
// graph.config.axis.y.domain.upperLimit = 20;

graph.reflowMultipleDatasets({
panData: [updatedDataset1],
});
};

const handleClickReset = () => {
graph.unloadContent(Carbon.api.line(dataset1));
graph.loadContent(Carbon.api.line(dataset1));
graph.reflowMultipleDatasets({
panData: [dataset1],
});
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ A native Gantt Chart using D3 based on standard design patterns.

```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';

var ganttInstance = Carbon.api.gantt(/* config object*/);
ganttInstance.loadContent(/* data */);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a simple Gantt chart with actions.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<GanttChart />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ This is a Gantt chart with different bar types.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<GanttChart />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This is a simple Gantt chart with datetime formatted bucket.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```
## Examples
<GanttChart />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This is a simple Gantt chart with eventline.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a simple Gantt chart with Events.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ This is a simple Gantt chart with reduced padding around graph and legend.
## Usage
```js
import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';
```

## Examples
Expand Down
Loading

0 comments on commit 1adae24

Please sign in to comment.