INNER CODE UNIT · Java

getTextForSeries

jjoe64/GraphView · src/main/java/com/jjoe64/graphview/CursorMode.java:128

    protected String getTextForSeries(Series s, DataPointInterface value) {
        StringBuffer txt = new StringBuffer();
        if (s.getTitle() != null) {
            txt.append(s.getTitle());
            txt.append(": ");
        }
        txt.append(mGraphView.getGridLabelRenderer().getLabelFormatter().formatLabel(value.getY(), false));
        return txt.toString();
    }

    protected void drawLegend(Canvas canvas) {
        mTextPaint.setTextSize(mStyles.textSize);
        mTextPaint.setColor(mStyles.textColor);

        int shapeSize = (int) (mStyles.textSize*0.8d);

        // width
        int legendWidth = mStyles.width;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…