Skip to Content
avatar image
Former Member

Generating Pie chart in MII by using Flot

Dear All,

I am trying to generate Pie chart by using Flot.I have gone through this thread:


But still fighting with this.I am getting the data from MII query in JSON format by using an xslt as Inline transformation.

Called the MII query in irpt page by using AJAX.Pasted the code below:








Any idea why Pie chart is not getting generated??

Thanks in advance.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 11, 2011 at 11:46 AM

    HI Manisha,

    In what format the query is returning data after you apply stylesheet transformation? Since XSLT is case sensitive please note that the column names case is same in query and the XSLT.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Manisha,

      Use the following code. it is working for me.

      Use XSL as

      <?xml version="1.0"?>
      <xsl:stylesheet version="1.0" xmlns:xsl="">
      <xsl:template match="/">
          [ <xsl:for-each select=" Rowsets/Rowset/Row">
      <xsl:if test="position() > 1">,</xsl:if> { "label": <xsl:value-of select="YEAR"/>, "data":<xsl:value-of select="VALUE"/>}</xsl:for-each>]

      Gud Luck