Need some help here, I am using a trial account to...
# gooddata-ui
y
Need some help here, I am using a trial account to explore gooddata. I am trying to use react SDK on existing application, I followed all the steps starting from registering backend and catalog export however I am facing errors while creating the charts
m
Hello @Yogi can you send example of the charts code? It seems you are likely missing measures (e.g.
measures={[your_measure]}
) on your chart props.
y
When I use below code, it gives different error
Copy code
function App() {
  return (
    <div className="App">
            <BarChart measures={[Md.TotalSales]} viewBy={Md.CustomerCity} />
           
    </div>
  );
}
m
@Yogi Look into
Md.CustomerCity
definition, you should likely pass
Md.CustomerCity.Something
into
viewBy
, where
Something
needs to be replaced by relevant display form
y
thanks for details
its working now
🙌 1
@Matyáš Kandl Can you pls share any article/sample I can go through to implement the filters on my react application and bind that with insight view embedded using react sdk ?