Update AnalogGraphThreads and graph

corrected calling graph function and adding values in graph