This question is locked. New answers and comments are not allowed.
Hi!
I want to implement a line series chart, but on screen instead of chart, appeare three line of string:
NoHorizontalAxisNoVerticalAxisNoSeries
In the component ts get function, i call console.dir() about the datasource, and it's appear perfectly on console:
get countrySource(): ObservableArray<Country> { console.dir(this._categoricalSource); return this._categoricalSource; }
here the html
<RadCartesianChart tkExampleTitle tkToggleNavButton> <LineSeries tkCartesianSeries [items]="countrySource" categoryProperty="Country" valueProperty="Amount"> <CategoricalAxis tkCartesianHorizontalAxis></CategoricalAxis> <LinearAxis tkCartesianVerticalAxis></LinearAxis> </LineSeries></RadCartesianChart>
component import header:
import { DataService } from '../data-services/data.service';import { Country } from '../data-services/data.service';import { ObservableArray } from "tns-core-modules/data/observable-array";import { RadChartBase } from "nativescript-pro-ui/chart/"
app module imports:
import { NgModule, NgModuleFactoryLoader, NO_ERRORS_SCHEMA } from "@angular/core";import { NativeScriptModule } from "nativescript-angular/nativescript.module";import { NSModuleFactoryLoader } from "nativescript-angular/router";import { NativeScriptHttpModule } from "nativescript-angular/http";import { AppRoutingModule } from "./app-routing.module";import { AppComponent } from "./app.component";import { NativeScriptUIChartModule } from "nativescript-pro-ui/chart/angular";
Where is went wrong?
Thanks
Augustine