Results 1 to 6 of 6

Thread: ExtJS charts : store.loadData() issue when new data has not the same number of column

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    18

    Default ExtJS charts : store.loadData() issue when new data has not the same number of column

    Testing changing a chart with the loadData() functionality of the data store is not working when the number of columns is different. This is not a scenario you've on your demos where you never change the number of columns (names yes).

    Currently, we regenerate the whole chart, so it's not a big issue but it would be handy if this get solved.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    18

    Default

    Ok, it's not a real bug. Please feel free to close it.

    If you want ot pass it to the team in charge of the charts feel free.

  4. #4
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,519

    Default

    I be able to reproduce the problem modifiying the Bar demo. Changed to Column, swap axes and generateData() generates random count of records. It seems tha when there is very few columns fails:

    With 12 columns:

    x1.png

    Then with 1 column:

    x2.png

    Regards.
    UI: Sencha Architect / ExtJS 4 - 6
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: WildFly / Weblogic
    Databases: Oracle
    / MySQL / DB2 / Firebird

    If you like my answer please vote!

  5. #5

    Default

    i have workaround by doing:

    chart.series.first().items = [];
    chart.getChartStore().loadData(data);

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Posts
    22

    Default

    Quote Originally Posted by oliveira.gabriel07 View Post
    i have workaround by doing:

    chart.series.first().items = [];
    chart.getChartStore().loadData(data);
    Thanks for the post - resetting the series per your suggestion solved a similar problem, where the chart was not fully resetting the series information after data load. This is in ExtJS 4.0.7

    By the way, I found that it's also useful to reset the axis, in particular when the chart is loaded where the data is zero - should just display an empty chart. Without it, the axis are sometimes draw in a wrong place:

    chart.axes.first().items = [];

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •