Skip to Content
author's profile photo Former Member
Former Member

ChartContainer Error: failed to load 'sap/chart/Chart.js' from resources/sap/chart/Chart.js: 404

Hi Experts,

Thanks in advance.. 😊

I am facing an issue while adding chart Container to my sapui5 fragment..

Below is my code,

<core:FragmentDefinition xmlns:core="sap.ui.core"

xmlns:mvc="sap.ui.core.mvc"

xmlns:viz="sap.viz.ui5.controls"

xmlns:suite="sap.suite.ui.commons"

xmlns="sap.m"

xmlns:vbm="sap.ui.vbm"

xmlns:l="sap.ui.layout"

xmlns:f="sap.ui.layout.form"

xmlns:layout="sap.ui.layout">

<l:Splitter width="100%" height="100%">

<l:contentAreas>

<suite:ChartContainer

id="chartContainer"

showFullScreen="true"

showPersonalization="false"

autoAdjustHeight="false"

showLegend="true"

personalizationPress="attachPersonalizationPress"

contentChange="attachContentChange"

title="Revenue">

<suite:content>

<suite:ChartContainerContent>

<suite:content>

<viz:VizFrame id="idVizFrameHourly" height="100%" width="98%" uiConfig="{applicationSet:'fiori'}"> </viz:VizFrame>

</suite:content>

</suite:ChartContainerContent>

</suite:content>

</suite:ChartContainer>

</l:contentAreas>

</l:Splitter>

</core:FragmentDefinition>

MY BOOTSTRAP SECTION IS GIVEN BELOW

<script src="resources/sap-ui-core.js"

id="sap-ui-bootstrap"

data-sap-ui-libs="sap.m,sap.viz"

data-sap-ui-theme="sap_bluecrystal"

data-sap-ui-xx-bindingSyntax="complex"

data-sap-ui-libs="sap.ui.commons,sap.m,sap.ui.core,sap.ui.ux3,sap.ui.comp,sap.ca.ui,sap.suite.ui.commons"

data-sap-ui-resourceroots='{"abc.cnp":"./"}'

>

</script>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2016 at 10:42 AM

    Hi Jithin,

    Can you please tell me which version you are using for SAPUI5?

    and you can try to change the src="resources/sap-ui-core.js"

    to

    src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"


    also I can see you have added two times "data-sap-ui-libs". Remove one of them and add all the libraries in one only.

    Thanks&Regards,

    Namita

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 20, 2016 at 10:40 AM

    Try adding the libs to the bootstrap

    data-sap-ui-libs="sap.suite.ui.commons,sap.m,sap.ui.vbm,sap.viz"

    Regards,

    Jamie

    SAP - Technology RIG

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.