Loading ...
Sorry, an error occurred while loading the content.

Chart set() problem

Expand Messages
  • tntnashtm123
    Hi Am I overlooking something obvious as set() not working for me. var yAxis = new YAHOO.widget.NumericAxis(); yAxis.alwaysShowZero = true; panelId =
    Message 1 of 3 , Jan 31, 2008
    • 0 Attachment
      Hi

      Am I overlooking something obvious as set() not working for me.


      var yAxis = new YAHOO.widget.NumericAxis();
      yAxis.alwaysShowZero = true;
      panelId = panelId+"_c";
      var mychart = new YAHOO.widget.LineChart(panelId, xmlData,
      {
      xField: "Name",
      series: seriesDef
      //yAxis: yAxis
      });

      mychart.set("yAxis", yAxis );
      mychart.set("request", "yyyyy");
      return mychart;


      thanks
      Tim
    • Josh Tynjala
      You need to wait for the contentReady event before setting attributes on the chart. Josh Tynjala Yahoo! Flash Platform ________________________________ From:
      Message 2 of 3 , Feb 1, 2008
      • 0 Attachment

        You need to wait for the contentReady event before setting attributes on the chart.

        Josh Tynjala
        Yahoo! Flash Platform

         


        From: ydn-javascript@yahoogroups.com [mailto: ydn-javascript@yahoogroups.com ] On Behalf Of tntnashtm123
        Sent: Thursday, January 31, 2008 10:27 PM
        To: ydn-javascript@yahoogroups.com
        Subject: [ydn-javascript] Chart set() problem

         

        Hi

        Am I overlooking something obvious as set() not working for me.

        var yAxis = new YAHOO.widget. NumericAxis( );
        yAxis.alwaysShowZer o = true;
        panelId = panelId+"_c" ;
        var mychart = new YAHOO.widget. LineChart( panelId, xmlData,
        {
        xField: "Name",
        series: seriesDef
        //yAxis: yAxis
        });

        mychart.set( "yAxis", yAxis );
        mychart.set( "request" , "yyyyy");
        return mychart;

        thanks
        Tim

      • tntnashtm123
        ... Thanks very much. Tim
        Message 3 of 3 , Feb 2, 2008
        • 0 Attachment
          --- In ydn-javascript@yahoogroups.com, "Josh Tynjala" <jtynjala@...>
          wrote:
          >
          > You need to wait for the contentReady event before setting attributes on
          > the chart.
          >
          > Josh Tynjala
          > Yahoo! Flash Platform
          >
          >
          >
          > ________________________________
          >
          > From: ydn-javascript@yahoogroups.com
          > [mailto:ydn-javascript@yahoogroups.com] On Behalf Of tntnashtm123
          > Sent: Thursday, January 31, 2008 10:27 PM
          > To: ydn-javascript@yahoogroups.com
          > Subject: [ydn-javascript] Chart set() problem
          >
          >
          >
          > Hi
          >
          > Am I overlooking something obvious as set() not working for me.
          >
          > var yAxis = new YAHOO.widget.NumericAxis();
          > yAxis.alwaysShowZero = true;
          > panelId = panelId+"_c";
          > var mychart = new YAHOO.widget.LineChart(panelId, xmlData,
          > {
          > xField: "Name",
          > series: seriesDef
          > //yAxis: yAxis
          > });
          >
          > mychart.set("yAxis", yAxis );
          > mychart.set("request", "yyyyy");
          > return mychart;
          >
          > thanks
          > Tim
          >

          Thanks very much.

          Tim
        Your message has been successfully submitted and would be delivered to recipients shortly.