Skip to content

Commit

Permalink
Merge pull request baidu#6 from baidu/master
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
李聪 authored Nov 28, 2017
2 parents 8d4083a + b52050f commit ed38ed2
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 819 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ Curve is an open-source tool to help label anomalies on time-series data. The la

Curve is designed to support plugin, so one can equip Curve with customized and powerful functions to help label effectively. For example, a plugin to identify anomalies which are similar to the one you labeled, so you don't have to search them through all the data.

Curve is originally developed by Baidu and Tsinghua Netman Lab.
Curve is originally developed by Baidu and Tsinghua NetMan Lab.


<img src="https://raw.githubusercontent.com/baidu/Curve/master/readme/screenshot.png">

## Getting Started

### Install dependencies and build*
Expand Down
Binary file added readme/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions web/src/common/baseComponent/band.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ export default class Band extends Component {
chart
});
});
eventProxy.on('deleteLegend', name => {
let legend = !self.isEmpty(self.state.legend[name]) ? self.state.legend[name] : {0: 'show'};
delete self.state.legend[name];
cookie.save('bandStatus', self.state.legend);
self.setState({
legend: self.state.legend
});
});
}

initBand() {
Expand Down Expand Up @@ -195,6 +203,7 @@ export default class Band extends Component {
chart.series.map((item, i) => {
if (item.name === self.props.bandSeries[index].name) {
color = item.color;
return;
}
});
style = {
Expand Down
Loading

0 comments on commit ed38ed2

Please sign in to comment.