Template:Skilling success chart/doc

From Old School RuneScape Wiki
Jump to: navigation, search
Information icon-grey.svg
This is a documentation subpage for Template:Skilling success chart.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Skilling success chart invokes function main in Module:Skilling success chart using Lua.

Template used to add a graph of skilling success chances on a page.

Where to use:

Usage

{{Skilling success chart
|label=Graph title
|xlabel=Label for x axis, defaults to "Level"
|ylabel=Label for y axis, defaults to "Success rate"
|showbefore=Option to display graph before the required level; use "no" to omit impossible chances (e.g. Chopping yews at level 20).
|label1=Item used or resource gathered (e.g. bronze axe or raw tuna)
|low1=The chance of success if the player's level in that skill is 1 (even if it's not possible to perform that action at that level)
|high1=The chance of success if the player's level in that skill is 99
|req1=The skill level required to perform an action (e.g. 85 for fishing raw dark crabs)
|color1=Colour used for the graph line. Fitting colours are recommended, e.g. "blue" for raw cod. Hex colour codes such as "#cb410b" work too.
|image1=Item used or resource gathered (e.g. Bronze axe.png or Raw tuna.png)
}}

Example

{"type":"scatter","options":{"tooltips":{"intersect":false,"format":"skillingSuccess"},"datasetsPerGroup":3,"aspectRatio":1.35,"title":{"display":true,"font":{"size":18},"text":"Yew tree cut chance","position":"top"},"scales":{"y":{"ticks":{"stepSize":0.1,"format":"percent"},"scaleLabel":{"display":true,"labelString":"Success rate"}},"x":{"ticks":{"stepSize":1},"scaleLabel":{"display":true,"labelString":"Level"}}},"maintainAspectRatio":false,"fill":false},"minWidth":"540px","resizable":true,"width":"540px","isChartObj":true,"height":"400px","isFinished":true,"minHeight":"400px","data":{"datasets":[{"fill":false,"borderCapStyle":"round","label":"Bronze  ","showLine":true,"data":[{"y":0.03515625,"x":60}],"pointStyleImg":"Bronze axe.png","hoverBackgroundColor":"rgba(151,198,222,0.5)","backgroundColor":"rgba(166,206,227,0.3)","borderDash":[5,5],"borderColor":"rgba(166,206,227,1)","hoverBorderColor":"rgba(151,198,222,1)","pointRadius":0,"clip":5,"baseColor":"saddlebrown"},{"pointRadius":0,"label":"Bronze  ","showLine":true,"data":[{"y":0.03515625,"x":60},{"y":0.03515625,"x":61},{"y":0.03515625,"x":62},{"y":0.03515625,"x":63},{"y":0.03515625,"x":64},{"y":0.03515625,"x":65},{"y":0.03515625,"x":66},{"y":0.0390625,"x":67},{"y":0.0390625,"x":68},{"y":0.0390625,"x":69},{"y":0.0390625,"x":70},{"y":0.0390625,"x":71},{"y":0.0390625,"x":72},{"y":0.0390625,"x":73},{"y":0.0390625,"x":74},{"y":0.0390625,"x":75},{"y":0.0390625,"x":76},{"y":0.0390625,"x":77},{"y":0.0390625,"x":78},{"y":0.0390625,"x":79},{"y":0.0390625,"x":80},{"y":0.0390625,"x":81},{"y":0.0390625,"x":82},{"y":0.04296875,"x":83},{"y":0.04296875,"x":84},{"y":0.04296875,"x":85},{"y":0.04296875,"x":86},{"y":0.04296875,"x":87},{"y":0.04296875,"x":88},{"y":0.04296875,"x":89},{"y":0.04296875,"x":90},{"y":0.046875,"x":91},{"y":0.046875,"x":92},{"y":0.046875,"x":93},{"y":0.046875,"x":94},{"y":0.046875,"x":95},{"y":0.046875,"x":96},{"y":0.046875,"x":97},{"y":0.046875,"x":98},{"y":0.05078125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(29,114,171,0.5)","backgroundColor":"rgba(31,120,180,0.3)","borderDash":[],"borderColor":"rgba(31,120,180,1)","hoverBorderColor":"rgba(29,114,171,1)","borderCapStyle":"round","clip":5,"baseColor":"saddlebrown"},{"hoverBorderColor":"rgba(169,219,124,1)","showLine":true,"data":[],"borderColor":"rgba(178,223,138,1)","backgroundColor":"rgba(178,223,138,0.3)","hoverBackgroundColor":"rgba(169,219,124,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Iron  ","showLine":true,"data":[{"y":0.0546875,"x":60}],"pointStyleImg":"Iron axe.png","hoverBackgroundColor":"rgba(48,152,42,0.5)","backgroundColor":"rgba(51,160,44,0.3)","borderDash":[5,5],"borderColor":"rgba(51,160,44,1)","hoverBorderColor":"rgba(48,152,42,1)","pointRadius":0,"clip":5,"baseColor":"dimgray"},{"pointRadius":0,"label":"Iron  ","showLine":true,"data":[{"y":0.0546875,"x":60},{"y":0.0546875,"x":61},{"y":0.0546875,"x":62},{"y":0.05859375,"x":63},{"y":0.05859375,"x":64},{"y":0.05859375,"x":65},{"y":0.05859375,"x":66},{"y":0.0546875,"x":67},{"y":0.0546875,"x":68},{"y":0.05859375,"x":69},{"y":0.05859375,"x":70},{"y":0.05859375,"x":71},{"y":0.05859375,"x":72},{"y":0.05859375,"x":73},{"y":0.0625,"x":74},{"y":0.0625,"x":75},{"y":0.0625,"x":76},{"y":0.0625,"x":77},{"y":0.0625,"x":78},{"y":0.06640625,"x":79},{"y":0.06640625,"x":80},{"y":0.06640625,"x":81},{"y":0.06640625,"x":82},{"y":0.0625,"x":83},{"y":0.06640625,"x":84},{"y":0.06640625,"x":85},{"y":0.06640625,"x":86},{"y":0.06640625,"x":87},{"y":0.06640625,"x":88},{"y":0.0703125,"x":89},{"y":0.0703125,"x":90},{"y":0.0703125,"x":91},{"y":0.0703125,"x":92},{"y":0.0703125,"x":93},{"y":0.07421875,"x":94},{"y":0.07421875,"x":95},{"y":0.07421875,"x":96},{"y":0.07421875,"x":97},{"y":0.07421875,"x":98},{"y":0.078125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(250,135,134,0.5)","backgroundColor":"rgba(251,154,153,0.3)","borderDash":[],"borderColor":"rgba(251,154,153,1)","hoverBorderColor":"rgba(250,135,134,1)","borderCapStyle":"round","clip":5,"baseColor":"dimgray"},{"hoverBorderColor":"rgba(216,25,27,1)","showLine":true,"data":[],"borderColor":"rgba(227,26,28,1)","backgroundColor":"rgba(227,26,28,0.3)","hoverBackgroundColor":"rgba(216,25,27,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Steel  ","showLine":true,"data":[{"y":0.07421875,"x":60}],"pointStyleImg":"Steel axe.png","hoverBackgroundColor":"rgba(253,183,93,0.5)","backgroundColor":"rgba(253,191,111,0.3)","borderDash":[5,5],"borderColor":"rgba(253,191,111,1)","hoverBorderColor":"rgba(253,183,93,1)","pointRadius":0,"clip":5,"baseColor":"lightgray"},{"pointRadius":0,"label":"Steel  ","showLine":true,"data":[{"y":0.07421875,"x":60},{"y":0.07421875,"x":61},{"y":0.07421875,"x":62},{"y":0.0703125,"x":63},{"y":0.07421875,"x":64},{"y":0.07421875,"x":65},{"y":0.07421875,"x":66},{"y":0.07421875,"x":67},{"y":0.078125,"x":68},{"y":0.078125,"x":69},{"y":0.078125,"x":70},{"y":0.078125,"x":71},{"y":0.08203125,"x":72},{"y":0.08203125,"x":73},{"y":0.08203125,"x":74},{"y":0.078125,"x":75},{"y":0.08203125,"x":76},{"y":0.08203125,"x":77},{"y":0.08203125,"x":78},{"y":0.08203125,"x":79},{"y":0.0859375,"x":80},{"y":0.0859375,"x":81},{"y":0.0859375,"x":82},{"y":0.0859375,"x":83},{"y":0.08984375,"x":84},{"y":0.08984375,"x":85},{"y":0.08984375,"x":86},{"y":0.0859375,"x":87},{"y":0.08984375,"x":88},{"y":0.08984375,"x":89},{"y":0.08984375,"x":90},{"y":0.08984375,"x":91},{"y":0.09375,"x":92},{"y":0.09375,"x":93},{"y":0.09375,"x":94},{"y":0.09375,"x":95},{"y":0.09765625,"x":96},{"y":0.09765625,"x":97},{"y":0.09765625,"x":98},{"y":0.1015625,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(242,121,0,0.5)","backgroundColor":"rgba(255,127,0,0.3)","borderDash":[],"borderColor":"rgba(255,127,0,1)","hoverBorderColor":"rgba(242,121,0,1)","borderCapStyle":"round","clip":5,"baseColor":"lightgray"},{"hoverBorderColor":"rgba(193,165,207,1)","showLine":true,"data":[],"borderColor":"rgba(202,178,214,1)","backgroundColor":"rgba(202,178,214,0.3)","hoverBackgroundColor":"rgba(193,165,207,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Black  ","showLine":true,"data":[{"y":0.078125,"x":60}],"pointStyleImg":"Black axe.png","hoverBackgroundColor":"rgba(101,58,146,0.5)","backgroundColor":"rgba(106,61,154,0.3)","borderDash":[5,5],"borderColor":"rgba(106,61,154,1)","hoverBorderColor":"rgba(101,58,146,1)","pointRadius":0,"clip":5,"baseColor":"black"},{"pointRadius":0,"label":"Black  ","showLine":true,"data":[{"y":0.078125,"x":60},{"y":0.08203125,"x":61},{"y":0.08203125,"x":62},{"y":0.08203125,"x":63},{"y":0.0859375,"x":64},{"y":0.0859375,"x":65},{"y":0.0859375,"x":66},{"y":0.08203125,"x":67},{"y":0.0859375,"x":68},{"y":0.0859375,"x":69},{"y":0.0859375,"x":70},{"y":0.08984375,"x":71},{"y":0.08984375,"x":72},{"y":0.08984375,"x":73},{"y":0.08984375,"x":74},{"y":0.09375,"x":75},{"y":0.09375,"x":76},{"y":0.09375,"x":77},{"y":0.09375,"x":78},{"y":0.09375,"x":79},{"y":0.09375,"x":80},{"y":0.09375,"x":81},{"y":0.09765625,"x":82},{"y":0.09765625,"x":83},{"y":0.09765625,"x":84},{"y":0.1015625,"x":85},{"y":0.1015625,"x":86},{"y":0.1015625,"x":87},{"y":0.1015625,"x":88},{"y":0.1015625,"x":89},{"y":0.1015625,"x":90},{"y":0.1015625,"x":91},{"y":0.10546875,"x":92},{"y":0.10546875,"x":93},{"y":0.10546875,"x":94},{"y":0.10546875,"x":95},{"y":0.109375,"x":96},{"y":0.109375,"x":97},{"y":0.109375,"x":98},{"y":0.11328125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(210,237,146,0.5)","backgroundColor":"rgba(217,240,163,0.3)","borderDash":[],"borderColor":"rgba(217,240,163,1)","hoverBorderColor":"rgba(210,237,146,1)","borderCapStyle":"round","clip":5,"baseColor":"black"},{"hoverBorderColor":"rgba(163,217,128,1)","showLine":true,"data":[],"borderColor":"rgba(173,221,142,1)","backgroundColor":"rgba(173,221,142,0.3)","hoverBackgroundColor":"rgba(163,217,128,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Mithril  ","showLine":true,"data":[{"y":0.0859375,"x":60}],"pointStyleImg":"Mithril axe.png","hoverBackgroundColor":"rgba(109,193,110,0.5)","backgroundColor":"rgba(120,198,121,0.3)","borderDash":[5,5],"borderColor":"rgba(120,198,121,1)","hoverBorderColor":"rgba(109,193,110,1)","pointRadius":0,"clip":5,"baseColor":"slateblue"},{"pointRadius":0,"label":"Mithril  ","showLine":true,"data":[{"y":0.0859375,"x":60},{"y":0.0859375,"x":61},{"y":0.08984375,"x":62},{"y":0.08984375,"x":63},{"y":0.08984375,"x":64},{"y":0.09375,"x":65},{"y":0.09375,"x":66},{"y":0.09375,"x":67},{"y":0.09765625,"x":68},{"y":0.09765625,"x":69},{"y":0.09375,"x":70},{"y":0.09765625,"x":71},{"y":0.09765625,"x":72},{"y":0.09765625,"x":73},{"y":0.1015625,"x":74},{"y":0.1015625,"x":75},{"y":0.1015625,"x":76},{"y":0.10546875,"x":77},{"y":0.10546875,"x":78},{"y":0.10546875,"x":79},{"y":0.1015625,"x":80},{"y":0.10546875,"x":81},{"y":0.10546875,"x":82},{"y":0.10546875,"x":83},{"y":0.109375,"x":84},{"y":0.109375,"x":85},{"y":0.109375,"x":86},{"y":0.11328125,"x":87},{"y":0.11328125,"x":88},{"y":0.11328125,"x":89},{"y":0.11328125,"x":90},{"y":0.11328125,"x":91},{"y":0.11328125,"x":92},{"y":0.1171875,"x":93},{"y":0.1171875,"x":94},{"y":0.1171875,"x":95},{"y":0.12109375,"x":96},{"y":0.12109375,"x":97},{"y":0.12109375,"x":98},{"y":0.125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(62,162,88,0.5)","backgroundColor":"rgba(65,171,93,0.3)","borderDash":[],"borderColor":"rgba(65,171,93,1)","hoverBorderColor":"rgba(62,162,88,1)","borderCapStyle":"round","clip":5,"baseColor":"slateblue"},{"hoverBorderColor":"rgba(33,125,64,1)","showLine":true,"data":[],"borderColor":"rgba(35,132,67,1)","backgroundColor":"rgba(35,132,67,0.3)","hoverBackgroundColor":"rgba(33,125,64,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Adamant  ","showLine":true,"data":[{"y":0.10546875,"x":60}],"pointStyleImg":"Adamant axe.png","hoverBackgroundColor":"rgba(0,99,52,0.5)","backgroundColor":"rgba(0,104,55,0.3)","borderDash":[5,5],"borderColor":"rgba(0,104,55,1)","hoverBorderColor":"rgba(0,99,52,1)","pointRadius":0,"clip":5,"baseColor":"seagreen"},{"pointRadius":0,"label":"Adamant  ","showLine":true,"data":[{"y":0.10546875,"x":60},{"y":0.10546875,"x":61},{"y":0.109375,"x":62},{"y":0.109375,"x":63},{"y":0.109375,"x":64},{"y":0.11328125,"x":65},{"y":0.11328125,"x":66},{"y":0.109375,"x":67},{"y":0.11328125,"x":68},{"y":0.11328125,"x":69},{"y":0.1171875,"x":70},{"y":0.1171875,"x":71},{"y":0.1171875,"x":72},{"y":0.12109375,"x":73},{"y":0.12109375,"x":74},{"y":0.1171875,"x":75},{"y":0.12109375,"x":76},{"y":0.12109375,"x":77},{"y":0.125,"x":78},{"y":0.125,"x":79},{"y":0.125,"x":80},{"y":0.12890625,"x":81},{"y":0.12890625,"x":82},{"y":0.125,"x":83},{"y":0.12890625,"x":84},{"y":0.12890625,"x":85},{"y":0.1328125,"x":86},{"y":0.1328125,"x":87},{"y":0.1328125,"x":88},{"y":0.13671875,"x":89},{"y":0.13671875,"x":90},{"y":0.1328125,"x":91},{"y":0.13671875,"x":92},{"y":0.13671875,"x":93},{"y":0.140625,"x":94},{"y":0.140625,"x":95},{"y":0.140625,"x":96},{"y":0.14453125,"x":97},{"y":0.14453125,"x":98},{"y":0.1484375,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(0,66,39,0.5)","backgroundColor":"rgba(0,69,41,0.3)","borderDash":[],"borderColor":"rgba(0,69,41,1)","hoverBorderColor":"rgba(0,66,39,1)","borderCapStyle":"round","clip":5,"baseColor":"seagreen"},{"hoverBorderColor":"rgba(254,222,125,1)","showLine":true,"data":[],"borderColor":"rgba(254,227,145,1)","backgroundColor":"rgba(254,227,145,0.3)","hoverBackgroundColor":"rgba(254,222,125,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Rune  ","showLine":true,"data":[{"y":0.125,"x":60}],"pointStyleImg":"Rune axe.png","hoverBackgroundColor":"rgba(254,190,62,0.5)","backgroundColor":"rgba(254,196,79,0.3)","borderDash":[5,5],"borderColor":"rgba(254,196,79,1)","hoverBorderColor":"rgba(254,190,62,1)","pointRadius":0,"clip":5,"baseColor":"steelblue"},{"pointRadius":0,"label":"Rune  ","showLine":true,"data":[{"y":0.125,"x":60},{"y":0.125,"x":61},{"y":0.12890625,"x":62},{"y":0.12890625,"x":63},{"y":0.1328125,"x":64},{"y":0.12890625,"x":65},{"y":0.1328125,"x":66},{"y":0.1328125,"x":67},{"y":0.13671875,"x":68},{"y":0.13671875,"x":69},{"y":0.13671875,"x":70},{"y":0.140625,"x":71},{"y":0.13671875,"x":72},{"y":0.140625,"x":73},{"y":0.140625,"x":74},{"y":0.14453125,"x":75},{"y":0.14453125,"x":76},{"y":0.1484375,"x":77},{"y":0.1484375,"x":78},{"y":0.1484375,"x":79},{"y":0.1484375,"x":80},{"y":0.1484375,"x":81},{"y":0.15234375,"x":82},{"y":0.15234375,"x":83},{"y":0.15625,"x":84},{"y":0.15625,"x":85},{"y":0.15625,"x":86},{"y":0.15625,"x":87},{"y":0.16015625,"x":88},{"y":0.16015625,"x":89},{"y":0.16015625,"x":90},{"y":0.1640625,"x":91},{"y":0.1640625,"x":92},{"y":0.1640625,"x":93},{"y":0.1640625,"x":94},{"y":0.16796875,"x":95},{"y":0.16796875,"x":96},{"y":0.171875,"x":97},{"y":0.171875,"x":98},{"y":0.17578125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(254,146,26,0.5)","backgroundColor":"rgba(254,153,41,0.3)","borderDash":[],"borderColor":"rgba(254,153,41,1)","hoverBorderColor":"rgba(254,146,26,1)","borderCapStyle":"round","clip":5,"baseColor":"steelblue"},{"hoverBorderColor":"rgba(225,106,18,1)","showLine":true,"data":[],"borderColor":"rgba(236,112,20,1)","backgroundColor":"rgba(236,112,20,0.3)","hoverBackgroundColor":"rgba(225,106,18,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Dragon  ","showLine":true,"data":[{"y":0.1328125,"x":61}],"pointStyleImg":"Dragon axe.png","hoverBackgroundColor":"rgba(194,72,2,0.5)","backgroundColor":"rgba(204,76,2,0.3)","borderDash":[5,5],"borderColor":"rgba(204,76,2,1)","hoverBorderColor":"rgba(194,72,2,1)","pointRadius":0,"clip":5,"baseColor":"firebrick"},{"pointRadius":0,"label":"Dragon  ","showLine":true,"data":[{"y":0.1328125,"x":61},{"y":0.13671875,"x":62},{"y":0.13671875,"x":63},{"y":0.140625,"x":64},{"y":0.140625,"x":65},{"y":0.14453125,"x":66},{"y":0.140625,"x":67},{"y":0.14453125,"x":68},{"y":0.14453125,"x":69},{"y":0.1484375,"x":70},{"y":0.1484375,"x":71},{"y":0.15234375,"x":72},{"y":0.1484375,"x":73},{"y":0.15234375,"x":74},{"y":0.15234375,"x":75},{"y":0.15234375,"x":76},{"y":0.15625,"x":77},{"y":0.15625,"x":78},{"y":0.16015625,"x":79},{"y":0.15625,"x":80},{"y":0.16015625,"x":81},{"y":0.16015625,"x":82},{"y":0.1640625,"x":83},{"y":0.1640625,"x":84},{"y":0.16796875,"x":85},{"y":0.1640625,"x":86},{"y":0.16796875,"x":87},{"y":0.16796875,"x":88},{"y":0.171875,"x":89},{"y":0.171875,"x":90},{"y":0.17578125,"x":91},{"y":0.17578125,"x":92},{"y":0.17578125,"x":93},{"y":0.17578125,"x":94},{"y":0.1796875,"x":95},{"y":0.1796875,"x":96},{"y":0.18359375,"x":97},{"y":0.18359375,"x":98},{"y":0.1875,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(145,49,4,0.5)","backgroundColor":"rgba(153,52,4,0.3)","borderDash":[],"borderColor":"rgba(153,52,4,1)","hoverBorderColor":"rgba(145,49,4,1)","borderCapStyle":"round","clip":5,"baseColor":"firebrick"},{"hoverBorderColor":"rgba(97,35,6,1)","showLine":true,"data":[],"borderColor":"rgba(102,37,6,1)","backgroundColor":"rgba(102,37,6,0.3)","hoverBackgroundColor":"rgba(97,35,6,0.5)","clip":5,"fill":false}]}}