Some visualisations only work in certain situations, for example a radar graph requires at least 3 questions, and a line chart requires more than one record. When visualisations aren't suitable, don't allow users to export the graph, because it doesn't exist.
When the visualisation isn't suited to the data, disable the export image button.