Search found 11 matches

Go to advanced search

by dphoeck@gmail.com
Wed Apr 21, 2021 5:10 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

Re: chart - updating data with an array issue

Hi, When I map the child property directly to the text label it works fine. This is what happens when I invoke the service on the button click and map the response's child property to the text label: child to label.PNG It looks like the response is fine, the problem is, when I apply this same mappin...
by dphoeck@gmail.com
Fri Apr 16, 2021 4:55 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

Re: chart - updating data with an array issue

Hi Serhii, I tried every way to make this work, but it didn't work with that TS code. I tried adding the TS code here (in the success mapping), but that didn't work: mapping with JSON.PNG Then I tried mapping the API response key value directly to the "data" variable, but that didn't work ...
by dphoeck@gmail.com
Tue Apr 13, 2021 1:44 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

Re: chart - updating data with an array issue

Hi Serhii,

The response is coming back as follows:

browser - network tab.PNG
browser - network tab.PNG (45.13 KiB) Viewed 5438 times

Any thoughts here would be helpful.

Thanks again,
Dan

by dphoeck@gmail.com
Thu Apr 08, 2021 5:52 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

Re: chart - updating data with an array issue

In addition to my response a few minutes ago, please confirm:

  1. I should copy the code here:

    TypeScript image.PNG
    TypeScript image.PNG (23.38 KiB) Viewed 5530 times
  2. should I update the code from
    this.data = JSON.parse(res.content.$t);
    To:
    this.data = JSON.parse(res.entry.content.$t);

  3. should I map in this way?

    mapping3.PNG
    mapping3.PNG (37.85 KiB) Viewed 5530 times
by dphoeck@gmail.com
Thu Apr 08, 2021 5:43 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

Re: chart - updating data with an array issue

Hi Serhii,

This is the full response structure:

mapping1.PNG
mapping1.PNG (3.67 KiB) Viewed 5530 times
mapping2.PNG
mapping2.PNG (16.59 KiB) Viewed 5530 times
mapping3.PNG
mapping3.PNG (37.85 KiB) Viewed 5530 times
by dphoeck@gmail.com
Wed Apr 07, 2021 5:10 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

Re: chart - updating data with an array issue

the data is updating, that's not the issue. The issue is that I can't populate the chart data from an API response. How should this be mapped?

by dphoeck@gmail.com
Fri Apr 02, 2021 5:56 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

Re: chart - updating data with an array issue

Hi, Updating the chart datasets appears to limit me to updating to pre-defined (and not changeable) variable arrays. I am ultimately looking to update the data in the chart based on a value returned from the API. Is there a way to update the chart's data based on an API response? The array I'm looki...
by dphoeck@gmail.com
Wed Mar 31, 2021 5:00 am
Forum: Issues
Topic: chart - updating data with an array issue
Replies: 12
Views: 8673
 
Jump to post

chart - updating data with an array issue

Hi, I'm trying to update a chart based on an array entered in an input. The array is entered in the input as follows, and on button click updates the chart data input array.PNG On button click, I do the following mapping: input array.PNG Unfortunately, The chart only maps 1 character per point on th...
by dphoeck@gmail.com
Tue Mar 30, 2021 5:42 am
Forum: Issues
Topic: Radio button selection storing
Replies: 8
Views: 5520
 
Jump to post

Re: Radio button selection storing

Hi Serhii, I have since figured out the mapping. Thank you!

by dphoeck@gmail.com
Mon Mar 22, 2021 6:41 am
Forum: Issues
Topic: Radio selection
Replies: 1
Views: 2967
 
Jump to post

Radio selection

Hi, I am having issues figuring out how to identify which item was selected from a list of radio buttons. I've tried do do an events--on radio button click, or on radio button select--map the selected value to a label. For some reason the only value it ever returns is the first value. None of the va...

Go to advanced search