Assuming you have many documents such as { expression: 'HAPPY' }{ expression: 'SAD' } you can visualize this setting the X-axis to Terms of expression.
If your documents are { HAPPY: 1, SAD: 2, NEUTRAL: 10 } then you need to build three filters on the X-axis, although each filter can be *. Then for your Y-axis you can apply a SUM(Happy) or SUM(Sad)
@wylie, thanks for reponse & sorry for delay in feedback. It looks like I didn't posted the question right.
Instead of deleting this post (as it might help someone), I've rephrased the question here.
Would appreciate if you can suggest what am I doing wrong. Thanks
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.