Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeline Chart - add grouping separator #1403

Merged
merged 1 commit into from Feb 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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