Adding Spark diagram