-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #499 from tradingview/fix209-whitespaces
Added whitespaces support
- Loading branch information
Showing
18 changed files
with
570 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Whitespace Data | ||
|
||
A whitespace - an empty space on the chart, which extends timescale, but doesn't have a value for the series. | ||
|
||
A whitespace item is an object with the only one field: | ||
|
||
- `time` ([Time](./time.md)) - whitespace time | ||
|
||
Example: | ||
|
||
```javascript | ||
// note it might be any type of series here | ||
const series = chart.addHistogramSeries(); | ||
|
||
series.setData([ | ||
{ time: "2018-12-01", value: 32.51 }, | ||
{ time: "2018-12-02", value: 31.11 }, | ||
{ time: "2018-12-03", value: 27.02 }, | ||
{ time: "2018-12-04" }, // whitespace | ||
{ time: "2018-12-05" }, // whitespace | ||
{ time: "2018-12-06" }, // whitespace | ||
{ time: "2018-12-07" }, // whitespace | ||
{ time: "2018-12-08", value: 23.92 }, | ||
{ time: "2018-12-09", value: 22.68 }, | ||
{ time: "2018-12-10", value: 22.67 }, | ||
{ time: "2018-12-11", value: 27.57 }, | ||
{ time: "2018-12-12", value: 24.11 }, | ||
{ time: "2018-12-13", value: 30.74 }, | ||
]); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.