Results 1 to 4 of 4

Thread: Is any body used the chart of ScatterChart?

  1. #1

    Exclamation 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;

    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

    Default nobody used ScatterChart?

    nobody used ScatterChart?

  3. #3
    Ext GWT Premium Member
    Join Date
    May 2010


    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


    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

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