Skip to content

Commit

Permalink
Timeline Chart - add grouping separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schwarz authored and buchen committed Feb 28, 2020
1 parent 128c15f commit be84604
Showing 1 changed file with 6 additions and 1 deletion.
@@ -1,5 +1,6 @@
package name.abuchen.portfolio.ui.util.chart;

import java.text.DecimalFormat;
import java.time.Instant;
import java.time.LocalDate;
import java.time.Period;
Expand All @@ -21,6 +22,7 @@
import org.swtchart.Chart;
import org.swtchart.IAxis;
import org.swtchart.IAxis.Position;
import org.swtchart.IAxisTick;
import org.swtchart.IBarSeries;
import org.swtchart.ICustomPaintListener;
import org.swtchart.ILineSeries;
Expand Down Expand Up @@ -95,7 +97,10 @@ public TimelineChart(Composite parent)
yAxis.getTitle().setVisible(false);
yAxis.getTick().setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
yAxis.setPosition(Position.Secondary);


IAxisTick yTick = getAxisSet().getYAxis(0).getTick();
yTick.setFormat(new DecimalFormat("#,###")); //$NON-NLS-1$

// 2nd y axis
int axisId = getAxisSet().createYAxis();
IAxis y2Axis = getAxisSet().getYAxis(axisId);
Expand Down

0 comments on commit be84604

Please sign in to comment.