1 Reply Latest reply on Jul 5, 2011 7:13 AM by Karl_Sigiscar_1971

    Lines and gradients disappear on resize when width specified in percent

    Karl_Sigiscar_1971 Level 3

      Hi,

       

      I have created a custom chart component that extends PlotChart.

       

      I added a DataDrawingCanvas (same as CartesianDataCanvas or PolarDataCanvas) instance to annotationElements and another to backgroundElements.

       

      I draw lines in the annotationElements canvas and gradients in the backgroundElements canvas.

       

      However, when the width of the chart is specified as 100%, the lines and gradients disappear when I resize the window.

       

      Regards,

      Karl.

       

       

      DataDrawingCanvas
      http://flexsamples.blogspot.com/2008/04/flex-easy-custom-charts.html

      CartesianDataCanvas
      http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/charts/chartClasses/ CartesianDataCanvas.html

      PolarDataCanvas
      http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/charts/chartClasses/ PolarDataCanvas.html