I need to plot several statistical results done analyzing metadata of research papers from https://aclweb.org/anthology. The website I made is https://sayak2357.github.io/index.html. I am analyzing three primary conferences namely ACL, EMNLP and NAACL. In each of the page of ACL, NAACL and EMNLP there is a plot. I wish to provide more plots which can be selected from a dropdown menu. How to achieve it ?

The code section for a plot is simply:

                <script>
                <!-- JAVASCRIPT CODE GOES HERE -->
                var data = [{
                x: ['2000', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018'],
                y: [ 119, 70, 65, 71, 88, 76, 147, 131, 187, 214, 230, 292, 183, 328, 286, 316, 328, 302, 381],
                type: 'bar'
                }];

                Plotly.newPlot('myDiv', data, {}, {showSendToCloud:true});





                </script>

0 Answers