Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8423335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:41:50+00:00 2026-06-10T03:41:50+00:00

I have a dojo chart which uses a JsonRest store (/dojo/store/JsonRest to be specific)

  • 0

I have a dojo chart which uses a JsonRest store (/dojo/store/JsonRest to be specific) to populate the series. The store is setup with an interval to periodically update itself. While it does pull back the correct data, the chart is not correctly updating. My intitial impression was that simply updating the store should update the chart. When this did not happen I tried to manually update the series like this, but it only resulted in all the graph points being set to a y-value of zero:

var jStore = new JsonRest( {target: "/TestExecutionSummary/" } );
jStore = Observable(jStore);

// Creating chart
...
...
chart.addSeries("y", new dojox.charting.StoreSeries(jStore, { query: {} }, "totalPassed"));


var interval = setInterval(function() {
  var updates = jStore.query({});
  updates.then(function(result) {
    chart.updateSeries("y", result, true).render();
  });
}, 3* 1000);        

Is there some way that I can get the chart to update itself with the new store, or does the JsonRest store not really support this type of workflow.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:41:51+00:00Added an answer on June 10, 2026 at 3:41 am

    I feel like this is a bit of a hack, but the following worked for me. Instead of createing the StoreSeries instance inline, I created an separate instance which I could then manually update by calling its fetch() method.

    // Creating chart
    ...
    var mySeries = new StoreSeries(testExecutionSummaryStore, { query: {} }, "totalTests");
    chart.addSeries("Total Test Count", mySeries, {plot:"total"});
    ...
    
    // Call this in the interval to update the chart
    mySeries.fetch();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dojo.store.Memory wrapped in a dojo.data.ObjectStore which I am then plugging into
I have an Observable dojo.store.JsonRest store that is wrapped in a dojo.data.ObjectStore for use
I have a Dojo Datagrid in one of my pages (which contains more content)
I have a dynamic dojo form in which I have a dijit.form.Select whose selected
I have dojo bar chart. Onmouseover the bar i would like a hand cursor.
Every Dojo chart that I have worked with has allowed for the use of
I have a dojo.data.ItemFileWriteStore object with items which contain a 'children' attribute, which in
I have this string, which is generated by dojo.toJson() function: {page:accommodation task=viewList,language:undefined} When decoding
I have a dojo datagrid which cells I will like to change at will
I have a Dojo-DataGrid which is programatically populated as below : var jsonStore =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.