Hi,
If I use Chart alone it works. If I use ListView alone it works. When I put then in the same page only the first in the order appears. What am I doing wrong or how can I achive. I also would need to have multiple chart on the same page. Can I achieve it ?
Here is my XML.. the js is from your samples, so I am not attaching.
<Page
xmlns="http://www.nativescript.org/tns.xsd" navigatingTo="onNavigatingTo"
xmlns:chart="nativescript-telerik-ui-pro/chart">
<StackLayout>
<StackLayout orientation="horizontal">
<Button class="btn btn-primary btn-rounded-sm" text="Create Trip" tap="{{ createTrip }}" />
<Button class="btn btn-primary btn-outline btn-rounded-sm" text="Home" tap="{{ home }}" />
<Button class="btn btn-primary btn-rounded-lg" text="Logout SF" tap="{{ logout }}" />
</StackLayout>
<StackLayout>
<chart:RadCartesianChart id="cartesianChart">
<chart:RadCartesianChart.series>
<chart:LineSeries items="{{ categoricalSource }}" categoryProperty="Country" valueProperty="Amount">
<chart:LineSeries.horizontalAxis>
<chart:CategoricalAxis/>
</chart:LineSeries.horizontalAxis>
<chart:LineSeries.verticalAxis>
<chart:LinearAxis/>
</chart:LineSeries.verticalAxis>
</chart:LineSeries>
</chart:RadCartesianChart.series>
</chart:RadCartesianChart>
</StackLayout>
<!-- this is not appearing --->
<GridLayout>
<ListView class="list-group" id="tripList" items="{{ tripList }}">
<ListView.itemTemplate>
<StackLayout class="list-group-item" orientation="vertical">
<GridLayout columns="*,*,*">
<Label class="list-group-item-text" col="0" id="distance" text="{{distance}}"/>
<Label col="1" id="duration" text="{{duration}}"/>
<Label col="2" id="duration" text="{{startTime}}"/>
</GridLayout>
</StackLayout>
</ListView.itemTemplate>
</ListView>
</GridLayout>
<!-- this is not appearing - -->
</StackLayout>
</Page>
Thanks
Narayan