private bool isActiveLegend = false;  //disabled permanently

        public GraphsCompare(
            CSVObject csv1,
            CSVObject csv2,
            float left,
            float top,
            float pageWidth,
            float height,
            string title1,
            string title2,
            int xNumMarkers,
            Database foodWeb,
            ConvergeManager manager
            )
        {
            this.left   = left;
            this.top    = top;
            this.height = height;
            if (isActiveLegend)
            {
                widthGraph = (pageWidth - widthLegend - (bufferGraph * 2)) / 2;
            }
            else
            {
                widthGraph = (pageWidth - (bufferGraph * 2)) / 2;;
            }
            this.foodWeb = foodWeb;

            //object for handling common graph control info
            this.manager = manager;

            graph1 = new GraphUnit(
                csv1,
                left,
                top,
                widthGraph,
                height,
                title1,
                xNumMarkers,
                manager,
                true
                );
            graph2 = new GraphUnit(
                csv2,
                left + widthGraph + bufferGraph,
                top,
                widthGraph,
                height,
                title2,
                xNumMarkers,
                manager,
                false
                );

            NormalizeYScale();
        }
        public GraphsCompare(
            CSVObject csv1,
            CSVObject csv2,
            float left,
            float top,
            float pageWidth,
            float height,
            string title1,
            string title2,
            int xNumMarkers,
            Database foodWeb,
            ConvergeManager manager
            )
        {
            this.left = left;
            this.top = top;
            this.height = height;
            if (isActiveLegend) {
            widthGraph = (pageWidth - widthLegend - (bufferGraph * 2)) / 2;
            } else {
            widthGraph = (pageWidth - (bufferGraph * 2)) / 2;;
            }
            this.foodWeb = foodWeb;

            //object for handling common graph control info
            this.manager = manager;

            graph1 = new GraphUnit (
            csv1,
            left,
            top,
            widthGraph,
            height,
            title1,
            xNumMarkers,
            manager,
            true
            );
            graph2 = new GraphUnit (
            csv2,
            left + widthGraph + bufferGraph,
            top,
            widthGraph,
            height,
            title2,
            xNumMarkers,
            manager,
            false
            );

            NormalizeYScale ();
        }