export class ProfilePage {
chartOptions: any;
learningStyleScores: FirebaseListObservable<any>;
constructor(public navCtrl: NavController, public navParams: NavParams, af: AngularFireDatabase) {
    this.learningStyleScores.subscribe(list => {
       var Auditory = list["0"].Audio;
       var Visual = list["0"].Visual;
       var Verbal = list["0"].Verbal;
       var Logical = list["0"].Logical;
       var Solitary = list["0"].Solitary;
       var Social = list["0"].Social;
       var Physical = list["0"].Physical; 
       console.log(list)
      })
    this.chartOptions = {
       .....,
        series: [{
            name: 'Score:',
            data: [
                ['Visual', Visual],
                 ['Auditory', Auditory],
                ['Verbal', Verbal],
                ['Logical', Logical],
                ['Solitary', Solitary],
                ['Social', Social],
                ['Physical', Physical], 
            ]
        }]
    }
}
}
I want to get the value of the each of the variable and pass their on other "this" and use its value to present my data in a chart. I'm confused on how to declare a variable globally so that it will be accessible by all. What am I doing wrong?
 
    