Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 50766200AF5 for ; Thu, 2 Jun 2016 09:59:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4FD30160A22; Thu, 2 Jun 2016 07:59:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6F0F2160A00 for ; Thu, 2 Jun 2016 09:59:07 +0200 (CEST) Received: (qmail 77345 invoked by uid 500); 2 Jun 2016 07:59:01 -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 77333 invoked by uid 99); 2 Jun 2016 07:59:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2016 07:59:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CBB53C652C for ; Thu, 2 Jun 2016 07:59:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.429 X-Spam-Level: * X-Spam-Status: No, score=1.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GhEqYxdrImhM for ; Thu, 2 Jun 2016 07:58:58 +0000 (UTC) Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id B90AF5F2C2 for ; Thu, 2 Jun 2016 07:58:57 +0000 (UTC) Received: by mail-vk0-f54.google.com with SMTP id c189so60345559vkb.1 for ; Thu, 02 Jun 2016 00:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=kdtHmePDA5E+WQznJ+7fCZBIAyswrxIlJi57vUBuv3Y=; b=rSOdit1/GB+ddj0ROVmjQp5P/+elD/N5QbaCxNzehuX7/+8f52qUJAldUNWjwCh7IH /lg4Ql7yTPP8+ekV8mhk45DQbcHK6Bc0lzKBELAHdjacJiRwCg7d9iit8NVSuqddwCfn VYnHyy5I7rIcKJokRniZw39OnHVzSvpvz2oj6Vj2speVz9/4vVVlRNVNGs8HVljfPUx6 ky9ouhVwE29NeS6NWN5UNY3FqLHJg9J3bGVarzu0RXm1rBE+SSPSnhJX4PVcTKJsP+EG jKjgBV+0oDk8loI1P7fdklLZDxH99wsoFKzSeLdtNknzb8kFeYRUBxCpIzJpZ/e5cPpt tEhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=kdtHmePDA5E+WQznJ+7fCZBIAyswrxIlJi57vUBuv3Y=; b=O0J3kY7A92uWMArNJFLl/O5RSNmonsuzCY8aqLTvYZmMglK06lxw4DpJfRzF98Gx4G mC9lTDiWxcZRN4SjtpnoftTQImpSVE7n2AA+5YCWuPdY+qeGv/KsncZgpVOAA7VvnLoY C+Xj+C9HcY41kYg1GA87l4aRefeLIFqdPt5JF9zSeoeENf3X8WugzlKJ5ULnWr3+PLxd x6s81Ftc4sm+CiKZ/xJUEjVZNgTtwYwGZ/5LExxbDcgGysV/qtRqFBEa1yIc/PipiMUg DWuCPm3oGGz5ENy9rDIpr773stQ9l/AnQ8nauwpisD2yQhJ9Qd6B+9W+ta8XhP6OYQkh qT6g== X-Gm-Message-State: ALyK8tKaliIa6vTDc7G/njhRn8Y7u0AmWjMY7iTd+QCXXrK+93vrx8YVEsix3odnPyGZOirRIgr2PINzXwzP4A== X-Received: by 10.176.0.163 with SMTP id 32mr3883837uaj.103.1464854336349; Thu, 02 Jun 2016 00:58:56 -0700 (PDT) MIME-Version: 1.0 Sender: omuppi1@gmail.com Received: by 10.159.32.36 with HTTP; Thu, 2 Jun 2016 00:58:26 -0700 (PDT) In-Reply-To: References: From: OmPrakash Muppirala Date: Thu, 2 Jun 2016 00:58:26 -0700 X-Google-Sender-Auth: df3Ydk7JRfBVMJp07loCmNFcGfE Message-ID: Subject: Re: Setting Title to LinearAxis at Runtime do not show up To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=001a113cd4625db1c0053446fa97 archived-at: Thu, 02 Jun 2016 07:59:08 -0000 --001a113cd4625db1c0053446fa97 Content-Type: text/plain; charset=UTF-8 I just had to add this line at the end of the initApp() function and it works. myChart.verticalAxis = lnrAxis; Thanks, Om On Thu, Jun 2, 2016 at 12:32 AM, Patil, Virat wrote: > Hello > > I have created Sample Example > > > xmlns:s="library:// > ns.adobe.com/flex/spark" > xmlns:mx="library:// > ns.adobe.com/flex/mx" creationComplete="initApp()"> > > > > > > > > import mx.charts.AxisRenderer; > import mx.charts.CategoryAxis; > import mx.charts.LinearAxis; > import mx.charts.series.LineSeries; > import mx.collections.ArrayCollection; > import mx.events.FlexEvent; > [Bindable] > public var expenses:ArrayCollection = new > ArrayCollection([ > {Month:"Jan", Profit:2000, Expenses:1500, > Amount:450}, > {Month:"Feb", Profit:1000, Expenses:200, > Amount:600}, > {Month:"Mar", Profit:1500, Expenses:500, > Amount:300} > ]); > > [Bindable]private var lnrAxis:LinearAxis; > public function initApp():void > { > var localSeries:LineSeries = new > LineSeries(); > var axisRend:AxisRenderer; > lnrAxis = new LinearAxis(); > lnrAxis.title = "Vertical Title"; > axisRend = new AxisRenderer(); > axisRend.axis =lnrAxis; > localSeries.yField = "Profit"; > localSeries.xField = "Month"; > localSeries.verticalAxis =lnrAxis; > localSeries.displayName = > localSeries.yField; > var currentSeries:Array = myChart.series; > currentSeries.push(localSeries); > myChart.series = currentSeries; > var hAxis:CategoryAxis = new > CategoryAxis(); > hAxis.categoryField = "Month"; > hAxis.title = 'Horizontal Title'; > myChart.horizontalAxis = hAxis; > myChart.dataProvider=expenses; > > > myChart.horizontalAxis = hAxis; > } > > > > ]]> > > > > > > > > > > > > > > > Regards > Virat I Patil > > -----Original Message----- > From: omuppi1@gmail.com [mailto:omuppi1@gmail.com] On Behalf Of OmPrakash > Muppirala > Sent: Thursday, June 02, 2016 11:37 AM > To: users@flex.apache.org > Subject: Re: Setting Title to LinearAxis at Runtime do not show up > > A code snippet would help folks understand the issue better. > > On Wed, Jun 1, 2016 at 10:20 PM, Patil, Virat > wrote: > > > We are creating a ColumnChart at runtime. So we have a linear axis as > > vertical axis for chart also it has AxisRenderer. > > Also we are assigning the title to Axis (Linear Axis) but its not > > getting displayed when chart is displayed on screen > > > > Regards > > Virat I Patil > > > > -----Original Message----- > > From: omuppi1@gmail.com [mailto:omuppi1@gmail.com] On Behalf Of > > OmPrakash Muppirala > > Sent: Wednesday, June 01, 2016 11:41 PM > > To: users@flex.apache.org > > Subject: Re: Setting Title to LinearAxis at Runtime do not show up > > > > What are you trying? > > > > Thanks, > > Om > > > > On Wed, Jun 1, 2016 at 12:01 AM, Patil, Virat > > > > wrote: > > > > > Hello > > > > > > We are trying to set the title to Linear Axis for chart which is > > > created at runtime. But the title do not show up Did anyone face > > > similar issue? > > > > > > Regards > > > Virat I Patil > > > This message contains information that may be privileged or > > > confidential and is the property of the Capgemini Group. It is > > > intended only for the person to whom it is addressed. If you are not > > > the intended recipient, you are not authorized to read, print, > > > retain, copy, disseminate, distribute, or use this message or any > > > part thereof. If you receive this message in error, please notify > > > the sender immediately and delete all copies of this message. > > > > > This message contains information that may be privileged or > > confidential and is the property of the Capgemini Group. It is > > intended only for the person to whom it is addressed. If you are not > > the intended recipient, you are not authorized to read, print, retain, > > copy, disseminate, distribute, or use this message or any part > > thereof. If you receive this message in error, please notify the > > sender immediately and delete all copies of this message. > > > This message contains information that may be privileged or confidential > and is the property of the Capgemini Group. It is intended only for the > person to whom it is addressed. If you are not the intended recipient, you > are not authorized to read, print, retain, copy, disseminate, distribute, > or use this message or any part thereof. If you receive this message in > error, please notify the sender immediately and delete all copies of this > message. > --001a113cd4625db1c0053446fa97--