The javascript error in Chart: Uncaught TypeError: Cannot read property '0' of undefined

KevinKevin ✭✭
edited August 1, 2018 in Questions
Hi everybody,

I'm facing the issue: Blank screen on page load, with the error below. This error occurred on custom profile. Although I set View access to related objects.

Please help me.

imageimage

Comments

  • edited February 2, 2017
    Kien,

    How is your chart setup? Could you maybe post a screenshot of that?

    Cheers
  • KevinKevin ✭✭
    edited August 1, 2018
    Hi David,

    This issue didn't occur for Administrator profile.
    The chart setup is below:

    <components>
    <skuidvis__chart model="Aggregate_Billing_ThisYear" maintitle="{{Model.labelPlural}}" type="area" uniqueid="sk-1M3VRh-119">
    <dataaxes>
    <axis id="amount" title="Amounts" maxvalue="30000000"/>
    </dataaxes>
    <categoryaxes>
    <axis id="categories" categorytype="field" fillvals="true" field="AcctSeed__Date__c" dategranularity="calmonth">
    <allowedgranularities>
    <type>calweek</type>
    <type>calquarter</type>
    <type>calyear</type>
    </allowedgranularities>
    </axis>
    </categoryaxes>
    <serieslist>
    <series valuefield="sumTotalJPY_Account_Payable" splittype="none" modelId="Aggregate_AccountPayable_ThisYear" categoryField="cmAcctSeedDatec" aggfunction="sum"/>
    <series valuefield="sumAmountJPY_Cash_Receipt" splittype="none" modelId="Aggregate_CashReceipt_ThisYear" categoryField="cmAcctSeedReceiptDatec" aggfunction="sum"/>
    <series valuefield="sumTotalJPY_Billing" splittype="none" modelId="Aggregate_Billing_ThisYear" categoryField="cmAcctSeedDatec" aggfunction="sum" splitfield="AcctSeed__Date__c" type="line"/>
    <series valuefield="sumPOTotalPricec" splittype="none" modelId="Aggregate_ProductionOrder_ThisYear" categoryField="cmOrderDatec" aggfunction="sum" type="line"/>
    </serieslist>
    <colors>
    <value>#35817a</value>
    <value>#ddf1ef</value>
    <value>#8b0000</value>
    <value>#8bc34a</value>
    <value>#00acc1</value>
    <value>#00796b</value>
    <value>#056f00</value>
    <value>#c5e1a5</value>
    <value>#4dd0e1</value>
    <value>#26a69a</value>
    <value>#259b24</value>
    <value>#7cb342</value>
    <value>#0097a7</value>
    <value>#00695c</value>
    </colors>
    <legend layout="horizontal" halign="center" valign="bottom" showlabels="true"/>
    <allowedtypes>
    <type>area</type>
    <type>areaspline</type>
    <type>column</type>
    </allowedtypes>
    </skuidvis__chart>
    </components>

  • edited December 15, 2016
    Kien,

    Your chart setup looks good.

    Are there additional "Field-Level-Securites" or other restraints in place?
    Since it worked for the Admin-Profile there has to be some missing SFDC permission for the profile.

    Cheers
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!