Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D357D11651 for ; Wed, 24 Sep 2014 14:19:13 +0000 (UTC) Received: (qmail 61630 invoked by uid 500); 24 Sep 2014 14:19:11 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 61603 invoked by uid 500); 24 Sep 2014 14:19:11 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 61138 invoked by uid 99); 24 Sep 2014 14:19:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2014 14:19:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of philip.medlam@gmail.com designates 209.85.213.181 as permitted sender) Received: from [209.85.213.181] (HELO mail-ig0-f181.google.com) (209.85.213.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2014 14:18:44 +0000 Received: by mail-ig0-f181.google.com with SMTP id h18so6552461igc.14 for ; Wed, 24 Sep 2014 07:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=M25Om4ZoKBuQifxWKTcI7ch77wBdBaNQ+MHjxGDgutA=; b=g10jG3N7zwD0+1F3e2dzPuJRVqbau+ja4zPvHoBRzpavmuz20fZhp6ReiVdh9Itkf0 khkUUHusDIdGaQd0TJaHSufDaJx+tUsucfpkrXRHp+PWcR63XOr9IlSVlJFVQpX6GUuz HzHa5QPK9kbCecpnVjHbZGPr11G2QWYUFHv50GfNzKHWtWB9nlMEehqSE4UiSUKzImTv YurfJT8MqRrd8cNewkvobmPZPRVp7yVW3aqYTFF/di4P6idmSAysr1w6S2d+fvVPM98X zUgmUMSi4G3xuJZpmr4YOlFQPSQNtQ6k4IIxDAiguPJvGOw5Y1aytT090xOrQge+L5X9 73hA== MIME-Version: 1.0 X-Received: by 10.42.84.9 with SMTP id j9mr11751482icl.60.1411568322686; Wed, 24 Sep 2014 07:18:42 -0700 (PDT) Received: by 10.107.131.10 with HTTP; Wed, 24 Sep 2014 07:18:42 -0700 (PDT) In-Reply-To: References: Date: Wed, 24 Sep 2014 15:18:42 +0100 Message-ID: Subject: Re: Actionscript Databinding for Charts From: Philip Medlam To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=90e6ba614d48733a460503d05c2e X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba614d48733a460503d05c2e Content-Type: text/plain; charset=UTF-8 OK, my bad, the binding does work. Still a slow sampling rate (about 9Hz) from the Accelerometer. So, if anyone has an idea on how to improve the accelerometer sampling rate whilst displaying an updated chart, I would be grateful. My code for the AS chart is as follows: ** ** ** * * * * * * * * * * * * * * * * * * ** On Mon, Sep 22, 2014 at 3:57 PM, Philip Medlam wrote: > Hi, I am trying to speed up a Flex/AS mobile application. > > As it stands, the lineChart (100 points) has a binding to an > arrayCollection. > > What I add a point, I also remove the first element in the array and > change the minimum x-axis value to simulate a scrolling chart. > > Now the data is supplied from the accelerometer. > Without showing the live chart my accelerometer sample rate is about 60Hz. > > When I show my mxml lineChart it is about 9Hz. > > > I'm hoping an AS version of the lineChart will allow a faster sampling > rate? > > Problem is the AS chart does not display any data (just x and y axis) in > the panel. > This is my foray into charts in AS, so I'm assuming it's a binding issue? > > I have: > > * lineChart = new LineChart();* > * lineSeries = new LineSeries();* > > * lineChart.dataProvider = zArrayColl; * > * lineChart.percentWidth = 100;* > * lineChart.percentHeight = 100;* > * lineChart.x = 100;* > * lineChart.y = 85;* > * lineChart.showDataTips = true;* > * lineSeries.xField = "myTime";* > * lineSeries.yField = "zAccel";* > > * lineSeries.xField = "myTime";* > * lineSeries.yField = "zAccel";* > > And in creationCompete: > * BindingUtils.bindProperty(lineSeries,"text", zArrayColl, > "text");* > > > I'm not at all sure if this is the correct approach. > If so, what the hell do I put in the "text" fields? > > Also, will this speed up the chart significantly? If not, any ideas on how > to improve this to increase the sampling rate? > > Phew > > Well, help with this (ideas or specifics) would be greatly appreciated. > > Phil. > > > -- > Philip Medlam > -- Philip Medlam --90e6ba614d48733a460503d05c2e--