Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 Pareto Chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

wryates

USA
11 Posts

Posted - 25 Jul 2014 :  14:44:57  Show Profile  Reply with Quote
I am using the Javascript version in order to create a Pareto Diagram but I am having some problems with a few things. First off, how do I get the percentages to show up on chart at the symbols like the .NET version. I am also having trouble rotating the x axis labels even though i am passing the JSON to do that. Also the x axis title will not change with the JSON either.

Here is my JSON:

{
    "StaticProperties": {
        "Canvas": {
            "Width": 1900,
            "Height": 900
        }
    },
    "ParetoChart": {
        "ChartSetup": {
            "XAxisLabels": {
                "TextColor": "BLACK",
                "Rotation": 90,
                "OverlapLabelMode": "OVERLAP_LABEL_DRAW"
            },
            "XAxisTitle": {
                "TextColor": "BLACK",
                "Text": "Product"
            },
            "BarPlot": {
                "LineColor": "BLACK",
                "BarColor": "LIGHTBLUE"
            },
            "LineMarkerPlot": {
                "LineColor": "LIGHTGREEN",
                "SymbolFillColor": "ALICEBLUE",
                "SymbolLineColor": "ALICEBLUE",
                "SymbolColor": "RED"
            }
        },
        "ParetoChartData": {
            "CategoryItems": [
                664.7662,
                107.097,
                347.197
            ],
            "CategoryStrings": [
                "Falling\r\n001 Hog",
                "Rearing\r\n001 Hog",
                "Slipping\r\n001 Hog"
            ]
        },
        "Methods": {
            "RebuildAndDraw": true
        }
    }
}


Thanks!

quinncurtis

1585 Posts

Posted - 25 Jul 2014 :  17:17:05  Show Profile  Reply with Quote
The % numeric label for the line marker symbol was never an option in the Pareto chart. It could be accessed in our other versions by accessing the underlying LineMarkerPlot object in the Pareto chart and turning it on there. Currently the QCSPCChart for Javascript does not have that capability.

Also, the category items do not support multi-line rotated labels, as you are trying to use.

There is an order dependence in setting the ChartSetup items. Call them after you call the ParetoChartData items.

{
    "StaticProperties": {
        "Canvas": {
            "Width": 1900,
            "Height": 900
        }
    },
    "ParetoChart": {
        "ParetoChartData": {
            "CategoryItems": [
                664.7662,
                107.097,
                347.197
            ],
            "CategoryStrings": [
                "Falling\r\n001 Hog",
                "Rearing\r\n001 Hog",
                "Slipping\r\n001 Hog"
            ]
        },
        "ChartSetup": {
            "XAxisLabels": {
                "TextColor": "BLACK",
                "Rotation": 90,
                "OverlapLabelMode": "OVERLAP_LABEL_DRAW"
            },
            "XAxisTitle": {
                "TextColor": "BLACK",
                "Text": "Product"
            },
            "BarPlot": {
                "LineColor": "BLACK",
                "BarColor": "LIGHTBLUE"
            },
            "LineMarkerPlot": {
                "LineColor": "LIGHTGREEN",
                "SymbolFillColor": "ALICEBLUE",
                "SymbolLineColor": "ALICEBLUE",
                "SymbolColor": "RED"
            }
        },
        "Methods": {
            "RebuildAndDraw": true
        }
    }
}
Go to Top of Page

wryates

USA
11 Posts

Posted - 28 Jul 2014 :  09:28:21  Show Profile  Reply with Quote
Thanks, I removed the multiline labels and it rotated correctly.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07