Skip to content

Commit

Permalink
Add line to stock and scroller
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsenyMalkov committed Jan 14, 2019
1 parent bcbfb22 commit c0ef9ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 6 additions & 6 deletions anychart/src/main/java/com/anychart/core/stock/Plot.java
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,12 @@ public com.anychart.core.stock.Plot legend(Boolean value) {

return this;
}
/**
*
*/
public com.anychart.core.stock.series.Line line(com.anychart.data.Table data) {
return new com.anychart.core.stock.series.Line(String.format(Locale.US, jsBase + ".line(%s)", (data != null) ? data.getJsBase() : null));
}
/**
* Getter for the plot line marker.
*/
Expand Down Expand Up @@ -2295,12 +2301,6 @@ public com.anychart.core.stock.Plot parentBounds(Number left, Number top, Number
public com.anychart.core.stock.series.Area area(com.anychart.data.TableMapping data) {
return new com.anychart.core.stock.series.Area(String.format(Locale.US, jsBase + ".area(%s)", (data != null) ? data.getJsBase() : null));
}
/**
*
*/
public com.anychart.core.stock.series.Line line(com.anychart.data.Table data) {
return new com.anychart.core.stock.series.Line(String.format(Locale.US, jsBase + ".line(%s)", (data != null) ? data.getJsBase() : null));
}
/**
*
*/
Expand Down
12 changes: 12 additions & 0 deletions anychart/src/main/java/com/anychart/core/stock/Scroller.java
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,12 @@ public com.anychart.core.stock.indicators.KeltnerChannels keltnerChannels(com.an
public com.anychart.core.stock.indicators.KeltnerChannels keltnerChannels(com.anychart.data.TableMapping mapping, Number maPeriod, Number atrPeriod, String maType, Number multiplier, String maSeries) {
return new com.anychart.core.stock.indicators.KeltnerChannels(String.format(Locale.US, jsBase + ".keltnerChannels(%s, %s, %s, %s, %s, %s)", (mapping != null) ? mapping.getJsBase() : null, maPeriod, atrPeriod, wrapQuotes(maType), multiplier, wrapQuotes(maSeries)));
}
/**
*
*/
public com.anychart.core.stock.scrollerseries.Line line(com.anychart.data.Table data) {
return new com.anychart.core.stock.scrollerseries.Line(String.format(Locale.US, jsBase + ".line(%s)", (data != null) ? data.getJsBase() : null));
}
/**
* Creates MACD (Moving Average Convergence Divergence) indicator on the scroller.
*/
Expand Down Expand Up @@ -1842,6 +1848,12 @@ public com.anychart.core.stock.Scroller parentBounds(Number left, Number top, Nu
public com.anychart.core.stock.scrollerseries.Area area(com.anychart.data.TableMapping data) {
return new com.anychart.core.stock.scrollerseries.Area(String.format(Locale.US, jsBase + ".area(%s)", (data != null) ? data.getJsBase() : null));
}
/**
*
*/
public com.anychart.core.stock.scrollerseries.Line line(com.anychart.data.TableMapping data) {
return new com.anychart.core.stock.scrollerseries.Line(String.format(Locale.US, jsBase + ".line(%s)", (data != null) ? data.getJsBase() : null));
}
/**
*
*/
Expand Down

0 comments on commit c0ef9ec

Please sign in to comment.