GitHub user pratyush-zluri added a comment to the discussion: Embeded charts

Hey @sohaibqasem any idea why the filters are not getting applied?

const formData = {
    slice_id: 120,
    adhoc_filters: [
      {
        clause: "WHERE",
        subject: "product_line",
        operator: "IN",
        comparator: ["Motorcycles"],
        expressionType: "SIMPLE",
      },
    ],
  };

  const encodedFormData = encodeURIComponent(JSON.stringify(formData));
  const chartUrl = 
`http://localhost:8088/explore/?form_data=${encodedFormData}&standalone=1`;
  
  
  return (
    <div className="container">
      <iframe
        title="Annual Cost Chart"
        width="100%"
        height="500"
        seamless
        frameBorder="0"
        scrolling="no"
        src={chartUrl}
      ></iframe>
    </div>
  );

GitHub link: 
https://github.com/apache/superset/discussions/26051#discussioncomment-12762877

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to