This is the place for questions about learning design and pedagogy; how to use different page types for different purposes.

Variables - using user responses in a Chart page

  • ymoore
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
5 years 2 months ago - 5 years 1 month ago #7397 by ymoore
Hi

I've been trying to use variables to provide the values for a series of data in the chart page type (Xerte v3.9). Students enter the data and then the data is used to draw the chart. I have it working in the sense that the student can enter the data (a label (one variable) and a value (a second variable) but the values are not then being picked up by the chart (where I have used [variable name] in the series > chart data table - see attached screenshot). On the Chart page I have the optional property 'Variables' added and the 'Update variables' option ticked.

Am I trying something that is not possible?

Thanks
Yvonne
Attachments:
Last edit: 5 years 1 month ago by ymoore.

Please Log in or Create an account to join the conversation.

  • ymoore
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
5 years 1 month ago #7419 by ymoore
Would I be better off posting this in the developers forum?

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #7427 by Fay
Hi Yvonne, I've just tried this and can't get it working. I think it will need a change to the chart page to get it working as it's likely that, unlike normal page text, the chart data isn't looked at to see if it contains variables. I should be able to change this but it won't be available until v3.10.

Please Log in or Create an account to join the conversation.

  • ymoore
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
5 years 1 month ago #7428 by ymoore
Thanks Fay, that would be great.

Yvonne

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #7429 by Fay
I've just fixed this so you can use variables in the chart/table data on the following pages: chart, table, sortable grid and documentation (within editable tables on this page). The variable markup will be replaced with the appropriate variable on the first view of the page but at the moment the tables/charts won't be redrawn if you later change the values of the variable. I'll log an issue for this to be looked at but it's going to take a bit of thinking about the best way for me to get this working so is unlikely to be done in time for v3.10. Hopefully the quicker fix I've put in for now will be helpful though
The following user(s) said Thank You: ymoore

Please Log in or Create an account to join the conversation.

  • ymoore
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
2 years 6 months ago #8826 by ymoore
Hi Fay

I've come back to this during my testing for v3.12, which we're about to upgrade to, and I still can't manage to get the chart to use the variables. With Author Support turned on I can see that the variable data is present, but the chart is just blank. Could you explain how this should work with an example?

Thanks
Yvonne

Please Log in or Create an account to join the conversation.

Moderators: ingdon
Time to create page: 0.192 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo