I am using eclipse swt with swtchart library. After creating chart, I would like to change the x-axis range.
However, because my x-axis is Date type, and Range function only uses double, I was not able to change the range.

Does anyone know how to do it?

Thanks.

IAxis xAxis = axisSet.getXAxis(0);
xAxis.setRange(new Range(1.5, 3.5));

the Range object can only have double as inputs, not Date.