1. #1
    Ext User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    cqhcp is on a distinguished road

      0  

    Exclamation Is any body used the chart of ScatterChart?

    Is any body used the chart of ScatterChart?


    In the version of 2.1.1, there is some problem with ScatterChart, maybe it's a bug.
    1.The ScatterChart hasn't the method of setDataProvider(), so, in the class of ChatModel, method updateYScale() always throw NullPointException, because the var of "max" and "min" always is null. So I modified this class add the method of setDataProvider().
    2.There is no DataProvider can used by ScatterChart, so I created a class named ScatterDataProvider, like this:

    public void populateData(ChartConfig config) {
    ScatterChart chart = (ScatterChart) config;
    chart.getValues().clear();

    for (ModelData m : store.getModels()) {
    Number n = getValue(m);
    Number l = getNumberLabel(m);
    if (n != null && l!=null) {
    chart.addPoint(n, l);
    }
    }
    }

    private Number getNumberLabel(ModelData model){
    Number value = null;
    if (labelProperty != null) {
    Object o = model.<Object> get(labelProperty);
    if (o != null) {
    if (o instanceof String) {
    value = Double.parseDouble((String) o);
    } else if (o instanceof Number) {
    value = (Number) o;
    }
    }
    }
    return value;
    }
    I used the ScatterDataProvider, but it always can't display the data
    How can I do???

  2. #2
    Ext User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    cqhcp is on a distinguished road

      0  

    Default nobody used ScatterChart?

    nobody used ScatterChart?


    nobody used ScatterChart?

  3. #3
    Ext GWT Premium Member
    Join Date
    May 2010
    Posts
    53
    Vote Rating
    0
    crehbein is on a distinguished road

      0  

    Default


    I haven't used that one exactly, but if you could weather an upgrade to 2.2.0 beta I think there's finally a fix for the Double vs. double min/max Y NPE. Otherwise, do a search on the forms for ideas for a workaround, there're posts in here somewhere.

  4. #4
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default


    I just started using scatter chart. I am on version 2.2.5.

    your problem prob has to do with the fact you swapped n and l in chart.addPoint(n, l);

    However, past that point, I am facing the problem that the dots don't display on the chart, unless you hover the mouse over it. Anyone fixed that? I have been looking at this all day, no solution yet.

Similar Threads

  1. [ext 3.0.3] Pie chart disappear wher chart store is reloaded
    By e-tip in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 24 Nov 2009, 7:12 AM
  2. Replies: 1
    Last Post: 12 Jul 2009, 6:05 PM
  3. Replies: 1
    Last Post: 20 Aug 2008, 3:38 AM
  4. Do not set body.innerHTML='' if scripts are loaded in body
    By vtswingkid in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 19 Feb 2007, 12:51 PM

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar