Changing type of diagram crashes report page

Hi all,

I’ve reported this on github as well (Changing type of diagram crashes report page · Issue #3013 · kobotoolbox/kpi · GitHub). However, is since my report is completely unusable (blank due to javascript errors) - is there a way I can reset the report options (?

Cheers,

Nils

Description

I have a survey with about 70 types
I tried to change the diagram question type from the default (bars) to area.
This leads to a javascript error.

Steps to Reproduce

note: I have not tested this on a fresh form

  1. Create a survey with a single option question
  2. Change the survey type to area

Expected behavior

Survey type is changed

Actual behavior

Browser page went blank (completely white) and had javascript errors.

29raven.js:58 bar chart: "scales.[x/y]Axes.barPercentage" is deprecated. Please use "dataset.barPercentage" instead
a.<computed> @ raven.js:58
raven.js:58 Error: "aires" is not a chart type.
    at Kt.buildOrUpdateControllers (vendors-a70e64f89cfda1a8029b.js:49)
    at Kt.update (vendors-a70e64f89cfda1a8029b.js:49)
    at Kt.construct (vendors-a70e64f89cfda1a8029b.js:49)
    at new Kt (vendors-a70e64f89cfda1a8029b.js:49)
    at o.value (reportViewItem.es6:145)
    at o.value (reportViewItem.es6:124)
    at rs (vendors-a70e64f89cfda1a8029b.js:508)
    at ml (vendors-a70e64f89cfda1a8029b.js:508)
    at t.unstable_runWithPriority (vendors-a70e64f89cfda1a8029b.js:516)
    at Hi (vendors-a70e64f89cfda1a8029b.js:508)
    at hl (vendors-a70e64f89cfda1a8029b.js:508)
    at Qs (vendors-a70e64f89cfda1a8029b.js:508)
    at vendors-a70e64f89cfda1a8029b.js:508
    at t.unstable_runWithPriority (vendors-a70e64f89cfda1a8029b.js:516)
    at Hi (vendors-a70e64f89cfda1a8029b.js:508)
    at Vi (vendors-a70e64f89cfda1a8029b.js:508)
    at Ui (vendors-a70e64f89cfda1a8029b.js:508)
    at Gs (vendors-a70e64f89cfda1a8029b.js:508)
    at Object.enqueueSetState (vendors-a70e64f89cfda1a8029b.js:508)
    at o.k.setState (vendors-a70e64f89cfda1a8029b.js:492)
    at Object.<anonymous> (reports.es6:770)
    at l (vendors-a70e64f89cfda1a8029b.js:27)
    at Object.fireWith [as resolveWith] (vendors-a70e64f89cfda1a8029b.js:27)
    at M (vendors-a70e64f89cfda1a8029b.js:27)
    at XMLHttpRequest.<anonymous> (vendors-a70e64f89cfda1a8029b.js:27)
    at XMLHttpRequest.d (raven.js:428)
a.<computed> @ raven.js:58
raven.js:432 Uncaught Error: "aires" is not a chart type.
    at Kt.buildOrUpdateControllers (vendors-a70e64f89cfda1a8029b.js:49)
    at Kt.update (vendors-a70e64f89cfda1a8029b.js:49)
    at Kt.construct (vendors-a70e64f89cfda1a8029b.js:49)
    at new Kt (vendors-a70e64f89cfda1a8029b.js:49)
    at o.value (reportViewItem.es6:145)
    at o.value (reportViewItem.es6:124)
    at rs (vendors-a70e64f89cfda1a8029b.js:508)
    at ml (vendors-a70e64f89cfda1a8029b.js:508)
    at t.unstable_runWithPriority (vendors-a70e64f89cfda1a8029b.js:516)
    at Hi (vendors-a70e64f89cfda1a8029b.js:508)
    at hl (vendors-a70e64f89cfda1a8029b.js:508)
    at Qs (vendors-a70e64f89cfda1a8029b.js:508)
    at vendors-a70e64f89cfda1a8029b.js:508
    at t.unstable_runWithPriority (vendors-a70e64f89cfda1a8029b.js:516)
    at Hi (vendors-a70e64f89cfda1a8029b.js:508)
    at Vi (vendors-a70e64f89cfda1a8029b.js:508)
    at Ui (vendors-a70e64f89cfda1a8029b.js:508)
    at Gs (vendors-a70e64f89cfda1a8029b.js:508)
    at Object.enqueueSetState (vendors-a70e64f89cfda1a8029b.js:508)
    at o.k.setState (vendors-a70e64f89cfda1a8029b.js:492)
    at Object.<anonymous> (reports.es6:770)
    at l (vendors-a70e64f89cfda1a8029b.js:27)
    at Object.fireWith [as resolveWith] (vendors-a70e64f89cfda1a8029b.js:27)
    at M (vendors-a70e64f89cfda1a8029b.js:27)
    at XMLHttpRequest.<anonymous> (vendors-a70e64f89cfda1a8029b.js:27)
    at XMLHttpRequest.d (raven.js:428)

Additional details

on Version 88.0.4324.150 (Official Build) Arch Linux (64-bit). Aires sounds like the french word for area?

Is there any way I can reset the report page?

Seems like a known problem related to the language setting… Overriding graph style with non-English UI crashes the reports · Issue #2950 · kobotoolbox/kpi · GitHub

Yes, you got the issue correct.

Thanks @Kal_Lam, I’ve seen you’ve helped other users to reset the report settings? I am not sure how to contact you since it doesnt look like that I am allowed to send you private messages.

Cheers

We reset it with the admin access. Maybe you could provide me the following information through a private message (i could reset it for your project as well):

  • Username
  • Project name
  • Server

Note, you should now be able to send private message. If you still have issues please refresh your page.

Thanks for the help @Kal_Lam I’ve shared the details via private message.

1 Like

@nika, as a temporary fix i have reset the same for you once again (i.e. you should be able to view the graphs again). This time, if you wish to play around with the custom report, kindly please note the followings:

  • First change your browser language to English.
  • Then you could work with graphs and bars without any issue.

Will let you know when we have a permanent fix for this.

1 Like

Hi @nika,

Kindly please be informed that we have a recent release of the KoBoToolbox, which should fix this issue permanently. For details, please feel free to go through the release notes: