
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Scripted statistics display blank chart
Hello,
I have written attached code for a scripted statistics and although the script for extracting values is working (checked it in Actions), the chart display is blank.
Basically, the y axis of the chart should show countries and x axis should display count for MidRange, Network etc. device types.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Has anybody worked on statistics before? Any help will be appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello P_D,
While I lack the time to have a deeper look at the script right now and only did some small tests with statistics so far, one thing that might help is to use "Name" instead of "Country" or "ComputerType" in the XMLAttributes.
When I used a different string from "Name" my example statistic didn't display the statistic it should have but only the last column.
And my groups didn't have values, but adding a "value"-XMLAttribute to them didn't add or break anything.
Hope this helps


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Play with adding something like this after your </group> tag...
& Chr(13) & Chr(10)
Looks like each group needs to be on its own line...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Chris and Joe,
Thank you for looking at this post. I did try adding the Chr(10 & Chr(13) to RetVal but I see "(16384) Parameter error:" error in adblog file. Looks like the grouping and subgrouping works correctly but somehow the statistics doesn't display due to this error.
Have you come across this error before and do you know why it occurs.
Thank you again for your input. I appreciate it.
Regards,
P_D.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I just started working with scripted statistics myself… To trouble shoot I have been putting in amMsgBox()s to show values of variables and working backward from there trying to identify exactly where the code fails… for example does you code fail before it gets to the ‘RetVal’ portion? It’s a pretty crude approach but it helps me figure out what to focus on… Maybe someone else has a better way to debug these?