Skip to content
Permalink
Browse files

various fixes

  • Loading branch information...
amcdnl committed Mar 1, 2019
1 parent 13b6c5a commit 3100e9e4450235c63f06772462b12c118ffc7e07
@@ -1,2 +1,2 @@
# read3
# r2d3
ReactJS Data Visualization based on D3.js
@@ -8,7 +8,6 @@ import {
signalStageData,
signalStages
} from '../common/demo/signals';
import { scaleTimeSeries } from '../common/data';
import { randomNumber } from '../common/demo';
import { range } from 'd3-array';
import { GridlineSeries, Gridline, GridStripe } from '../common/Gridline';
@@ -127,47 +126,7 @@ storiesOf('Charts/Scatter Plot', module)
}
/>
))
.add('Live Update', () => <BubbleChartLiveUpdate />)
.add('Punchcard', () => {
const result = scaleTimeSeries(largeSignalChartData);
return (
<ScatterPlot
height={400}
width={750}
data={result.data}
margins={20}
series={
<ScatterSeries
point={
<ScatterPoint
fill="rgba(174, 52, 255, .5)"
size={v => {
if (Array.isArray(v.meta)) {
return v.meta.length + 3;
}
return 4;
}}
/>
}
/>
}
yAxis={
<LinearYAxis
type="value"
axisLine={null}
tickSeries={<LinearYAxisTickSeries line={null} label={null} />}
/>
}
xAxis={
<LinearXAxis
type="time"
tickSeries={<LinearXAxisTickSeries interval={result.threshold} />}
/>
}
gridlines={<GridlineSeries line={<Gridline direction="x" />} />}
/>
);
});
.add('Live Update', () => <BubbleChartLiveUpdate />);

class BubbleChartLiveUpdate extends React.Component<any, any> {
constructor(props) {
@@ -1,5 +1,5 @@
import React, { Component, ReactNode, cloneElement } from 'react';
import { Tooltip, TooltipProps } from '../../common/TooltipArea';
import { Tooltip, TooltipProps } from '../../common/TooltipArea/Tooltip';
import { TooltipTemplate } from './TooltipTemplate';
import { isFunction } from 'lodash-es';

@@ -6,4 +6,3 @@ export * from './areaStack';
export * from './types';
export * from './bigInteger';
export * from './multiSeries';
export * from './timeSeries';

This file was deleted.

Oops, something went wrong.
@@ -16,5 +16,5 @@
"declaration": true
},
"types": ["node"],
"exclude": ["node_modules", "src/**/*.test.tsx"]
"exclude": ["node_modules", "src/**/*.test.tsx", "src/**/*.story.tsx"]
}

0 comments on commit 3100e9e

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