Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
This is the place for questions about learning design and pedagogy; how to use different page types for different purposes.
  • Page:
  • 1

TOPIC: Variables - using user responses in a Chart page

Variables - using user responses in a Chart page 2 weeks 6 days ago #7397

  • ymoore
  • ymoore's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 42
  • Thank you received: 1
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:

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

Last edit: by ymoore.

Variables - using user responses in a Chart page 6 days 13 hours ago #7419

  • ymoore
  • ymoore's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 42
  • Thank you received: 1
Would I be better off posting this in the developers forum?

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

Variables - using user responses in a Chart page 3 days 18 hours ago #7427

  • Fay
  • Fay's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 181
  • Thank you received: 63
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.

Variables - using user responses in a Chart page 3 days 17 hours ago #7428

  • ymoore
  • ymoore's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 42
  • Thank you received: 1
Thanks Fay, that would be great.

Yvonne

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

Variables - using user responses in a Chart page 3 days 17 hours ago #7429

  • Fay
  • Fay's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 181
  • Thank you received: 63
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.

  • Page:
  • 1
Moderators: ingdon
Time to create page: 0.046 seconds
Copyright © 2021 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search