Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 Pareto Chart

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
wryates Posted - 25 Jul 2014 : 14:44:57
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!
2   L A T E S T    R E P L I E S    (Newest First)
wryates Posted - 28 Jul 2014 : 09:28:21
Thanks, I removed the multiline labels and it rotated correctly.
quinncurtis Posted - 25 Jul 2014 : 17:17:05
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
        }
    }
}

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07