i want to know that how can be data transferred from raspberry pi to nextion lcd and display to nextion gui as a indicator
Itead published Segnix as a way for PI to deal with Arduino files.
However, Pi offers many programming languages.
You wouldn't be limited to just an Arduino style C++ to do so.
User choice for which language, chose the language most comfortable with