Java Code Examples for com.github.mikephil.charting.data.CandleEntry#getOpen()
The following examples show how to use
com.github.mikephil.charting.data.CandleEntry#getOpen() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CandleStickChart.java From Notification-Analyser with MIT License | 5 votes |
/** * Transforms the values of an entry in order to draw the candle-body. * * @param bodyPoints * @param e * @param bodySpace */ private void transformBody(float[] bodyPoints, CandleEntry e, float bodySpace) { bodyPoints[0] = e.getXIndex() + bodySpace; bodyPoints[1] = e.getClose() * mPhaseY; bodyPoints[2] = e.getXIndex() + (1f - bodySpace); bodyPoints[3] = e.getOpen() * mPhaseY; transformPointArray(bodyPoints); }