cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HI all, I am using Gauge charts in sapui5 fiori but it was not working

tirumala
Explorer
0 Likes
244

Hi all, i am using justgage is t display the gauges in sapui5 fiori i had written the code but to it but still i am getting error that it would be like this TypeError: JustGage is not a constructor,

here is the controller code

 onAfterRendering: function () {
            this.GauegeDisplay();
        },
        //Semi-circle gauges
        GauegeDisplay: function() {

            new JustGage({
                id: this.getView().byId("id_Gauge1").sId,
                value: 67,
                min: 0,
                max: 100,
                title: "Sample 1 with HTML"
            });

            new JustGage({
                id: this.getView().byId("id_Gauge2").sId,
                value: getRandomInt(0, 100),
                min: 0,
                max: 100,
                title: "Sample 2 with FlexBox",
                label: "pounds",
                view: this.oView,size: 900,
            });

            new JustGage({
                id: this.getView().byId("id_Gauge3").sId,
                value: getRandomInt(0, 100),
                min: 0,
                max: 100,
                title: "Shadow effects",
                label: "",
                shadowOpacity: 1,
                shadowSize: 5,
                shadowVerticalOffset: 10,
                view: this.oView,
                size: 400,
            });
        },
and here is the view code for the above
content>
            <html:div id="id_Gauge1" stytle="width:25%; height:25%" />
            <FlexBox
                id="id_Gauge2"
                class="gauage"
            />
            <l:Grid
                id="id_Gauge3"
            />
        </content> and also added extra script tags in the index.html files, but it was displaying the same error 

tirumala_0-1740653270372.png

any one please help me..

 

Accepted Solutions (0)

Answers (0)