Solved
A reference of type cannot be initialized with a value of type
I added "graph clicked trigger" to graph and generated code. In the MainView Base.cpp graph.setClick Action(graphClickCallback) gived this error.
Error[Pe434]: a reference of type "touchgfx::GenericCallback<touchgfx::GraphWrapAndClear<(int16_t)100> const &, touchgfx::ClickEvent const &> &" (not const-qualified) cannot be initialized with a value of type
"touchgfx::Callback<MainViewBase, touchgfx::AbstractDataGraph const &, touchgfx::AbstractDataGraph::GraphClickEvent const &>"
