Skip to content

Commit

Permalink
this.tooltip rules
Browse files Browse the repository at this point in the history
  • Loading branch information
benstoltz committed Mar 1, 2017
1 parent 50a104c commit a06bbd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cedar.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,9 @@ export default class Cedar {
if (this._definition.datasets && this._definition.series) {
this._definition.dataset = specUtils.convertDatasetsToDataset(this._definition.datasets, this._definition.series, this._chartType, this._definition.dataset);
if (!this._definition.tooltip) {
this._definition.tooltip = {
this.tooltip = {
'title': `{${this._definition.series[0].category.field}}`,
'content': `{${this._definition.series[0].value.field}}`,
'id': `cedar-${Date.now()}`
'content': `{${this._definition.series[0].value.field}}`
};
}
}
Expand Down

0 comments on commit a06bbd9

Please sign in to comment.