<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 13 Dec 2016 4:44 PM, "Shawn Tse" <<a href="mailto:shawntse@gmail.com">shawntse@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm interested in being able to make graphs that update depending on<br>
what the active feature in the atlas is. I know some python and a<br>
little bit of the QGIS API, but I'm curious - is there some sort of<br>
listener function for the atlas that gets called whenever the Preview<br>
Atlas/Prev Feature/Next Feature/First Feature/Last Feature buttons are<br>
pressed?<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Try QgsAtlasComposition::featureChanged. See</div><div dir="auto"><a href="https://qgis.org/api/classQgsAtlasComposition.html#ab1a15fdb6d20ebb1254ebb6714254fac">https://qgis.org/api/classQgsAtlasComposition.html#ab1a15fdb6d20ebb1254ebb6714254fac</a><br></div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What I eventually want to do is to manipulate the node items that were<br>
created in a recent updated version of QGIS, and use them to make a<br>
line graph, gridlines, etc.<br>
<br>
I'm hoping to draw the data directly from the shapefiles themselves or<br>
from a .csv file.<br>
<br>
I originally tried to use an expression in a text box to do this, but<br>
it seems that expressions are unable to use custom functions to<br>
manipulate the composer. So I'm hoping that there's some sort of<br>
Listener method.<br>
<br>
Thanks.<br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br></div></div></div>