Date chart with miliseconds not rendering on firefox/ie

jQuery UI Widgets
Post Reply
Fasader
Posts: 6
Joined: 19 May 2014, 09:48

11 Nov 2014, 10:47

Here's an example code, the chart doesn't render in IE/Firefox, but it does in Chrome.
If anyone knows a solution or workaround that doesn't involve not using miliseconds, please share :)
Thanks!

Code: Select all

    private void createDateModel() {
        dateModel = new LineChartModel();
        LineChartSeries series1 = new LineChartSeries();
        series1.setLabel("Series 1");
        series1.set("2014-01-01 00:10:50:523", 51);
        series1.set("2014-01-01 00:10:50:636", 22);
        series1.set("2014-01-01 00:10:50:784", 65);
        series1.set("2014-01-01 00:10:50:984", 35);
        dateModel.addSeries(series1);
        dateModel.getAxis(AxisType.Y).setLabel("Values");
        DateAxis axis = new DateAxis("Dates");
        axis.setTickAngle(-50);
        axis.setMax("2014-01-01 00:10:51");
        axis.setTickFormat("%H:%#M:%S:%N");
        dateModel.getAxes().put(AxisType.X, axis);
    }

Code: Select all

<h:body>
        <p:chart type="line" model="#{chartView.dateModel}" style="height:400px;"/>
</h:body>

User avatar
douglasjunior
Posts: 20
Joined: 28 Feb 2013, 14:28
Contact:

10 Feb 2015, 17:52

Have a solution?

iNerd
Posts: 31
Joined: 11 Oct 2013, 14:45
Location: Germany

11 Feb 2015, 12:35

This is a JSF question, please delete and post in correct forum.

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest