Data not showing in Chart


#1

Hi,

I have a newbie question. My data is not showing up in the chart using tm1-chart-ui-dbr. If i use the same reference and switch to tm1-ui-dbr and I can see the number. Does anyone know what causing it or point me to the right direction to debug it?

Below is the actual code i used:

Doesn’t work:

                <tm1-ui-chart-dbr tm1-label="test" tm1-instance="iNova"
                    tm1-cube="Sales" 
                    tm1-elements="Actual,2017-11,AU09,30,Currency Codes,CHC,All Countries,
                    All Channels,Total Reason Codes,All Customers,All Products,Net Sales"> 
                  </tm1-ui-chart-dbr>

Does work:

                <tm1-ui-dbr tm1-label="test" tm1-instance="iNova"
                    tm1-cube="Sales" 
                    tm1-elements="Actual,2017-11,AU09,30,Currency Codes,CHC,All Countries,
                    All Channels,Total Reason Codes,All Customers,All Products,Net Sales"> 
                  </tm1-ui-dbr>

Cheers.

David


#2

Hi @dwong,

Can you provide the code for the chart as well?


#3

Hi Tim,

I tried to use the simple one below:

			<tm1-ui-chart
                                    tm1-chart-type="discreteBar"
                                    tm1-height="300"
                                    tm1-axis-label-x=""
                                    tm1-axis-label-y=""
                                    tm1-data-decimal="0"
                                    tm1-duration="2000"
                                    tm1-margin="{top: 10, right: 10, bottom: 20, left: 10}"
                                    >
                                    <tm1-ui-chart-dbr
                                       tm1-instance="iNova"
                                       tm1-cube="Sales"
                                       tm1-elements="Actual,2017-11,AU09,30,Currency Codes,CHC,All Countries,
                All Channels,Total Reason Codes,All Customers,All Products,Net Sales"> 

tm1-label=“Label”
>

Cheers.

David


#4

That doesn’t seem to be all of the code, there should be a closing </tm1-ui-chart> tag as well.


#5

Hi Tim,

Sorry the forum trimmed my codes. Here you go.

			<tm1-ui-chart
                                    tm1-chart-type="discreteBar"
                                    tm1-height="300"
                                    tm1-axis-label-x=""
                                    tm1-axis-label-y=""
                                    tm1-data-decimal="0"
                                    tm1-duration="2000"
                                    tm1-margin="{top: 10, right: 10, bottom: 20, left: 10}"
                                    >
                                    <tm1-ui-chart-dbr
                                       tm1-instance="iNova"
                                       tm1-cube="Sales"
                                       tm1-elements="Actual,2017-11,AU09,30,Currency Codes,CHC,All Countries,All Channels,Total Reason Codes,All Customers,All Products,Net Sales"  tm1-label="Label">

                                    </tm1-ui-chart-dbr>
      </tm1-ui-chart>     

Cheers.

David


#6

Hi @dwong,

Any error in the console?

If no error, can you try to re-create that chart in a page - that only contains that component. We might need to have a look at the network tab for this if there is no error in the console.


Paul