Dotplot Chart

According to William S. Cleveland dotplots are an alternative to the bar chart, in which dots are used to depict the quantitative values (e.g. counts) associated with categorical variables.


Example Color Themes

Example Fonts



Show Code

Tools

<!-- Include the CanvasXpress library in your HTML file -->
<link rel="stylesheet" href="https://www.canvasxpress.org/dist/canvasXpress.css" type="text/css"/>
<script src="https://www.canvasxpress.org/canvasXpress.min.js"></script>


<!-- Create a canvas element for the chart with the desired dimensions -->
<div>
  <canvas id="canvasId" width="600" height="600"</canvas>
</div>


<!-- Create a script to initialize the chart -->
<script>

  <!-- Create the data for the graph -->
  var data = {
     "x" : {
        "Chapter Name" : ["The Shire","The Shire","Very Old Friends","A Long Expected Party","A Long Expected Party","A Long Expected Party","A Long Expected Party","A Long Expected Party","Farewell Dear Bilbo","Keep It Secret Keep It Safe","Keep It Secret Keep It Safe","The Account of Isildur","At The Green Dragon","At The Green Dragon","At The Green Dragon","At The Green Dragon","The Shadow Of ThePast","The Shadow Of ThePast","The Shadow Of ThePast","ThePassing Of The Elves","ThePassing Of The Elves","Saruman The White","A Shortcut To Mushrooms","A Shortcut To Mushrooms","A Shortcut To Mushrooms","A Shortcut To Mushrooms","Buckleberry Ferry","Buckleberry Ferry","Buckleberry Ferry","Buckleberry Ferry","At The Sign of thePrancingPony","At The Sign of thePrancingPony","At The Sign of thePrancingPony","At The Sign of thePrancingPony","At The Sign of thePrancingPony","The Nazgul","The Nazgul","The Nazgul","The Nazgul","The Nazgul","The Midgewater Marshes","The Midgewater Marshes","The Midgewater Marshes","A Knife In The Dark","A Knife In The Dark","A Knife In The Dark","A Knife In The Dark","A Knife In The Dark","TheCaverns Of Isengard","Flight To The Ford","Flight To The Ford","Flight To The Ford","Flight To The Ford","Many Meetings","Many Meetings","Many Meetings","The Fate Of The Ring","The Sword That Was Broken","The Sword That Was Broken","The Evenstar","TheCouncil Of Elrond","TheCouncil Of Elrond","TheCouncil Of Elrond","TheCouncil Of Elrond","TheCouncil Of Elrond","TheCouncil Of Elrond","TheCouncil Of Elrond","TheCouncil Of Elrond","TheCouncil Of Elrond","Gilraen's Memorial","Bilbo's Gifts","The Departure Of The Fellowship","The Departure Of The Fellowship","The Ring Goes South","The Ring Goes South","The Ring Goes South","The Ring Goes South","The Ring Goes South","The Ring Goes South","The Ring Goes South","The Ring Goes South","ThePass OfCaradhras","ThePass OfCaradhras","ThePass OfCaradhras","ThePass OfCaradhras","ThePass OfCaradhras","ThePass OfCaradhras","Moria","Moria","Moria","Moria","Moria","Moria","Moria","Moria","Moria","A Journey In The Dark","A Journey In The Dark","A Journey In The Dark","A Journey In The Dark","A Journey In The Dark","A Journey In The Dark","Balin's Tomb","Balin's Tomb","Balin's Tomb","Balin's Tomb","Balin's Tomb","Balin's Tomb","Balin's Tomb","The Bridge Of Khazad-dûm","The Bridge Of Khazad-dûm","The Bridge Of Khazad-dûm","The Bridge Of Khazad-dûm","The Bridge Of Khazad-dûm","The Bridge Of Khazad-dûm","Lothlorien","Lothlorien","Lothlorien","Lothlorien","Lothlorien","Caras Galadhon","Caras Galadhon","Caras Galadhon","Caras Galadhon","Caras Galadhon","The Mirror Of Galadriel","Farewell To Lorien","Farewell To Lorien","Farewell To Lorien","Farewell To Lorien","Farewell To Lorien","Farewell To Lorien","The Great River","The Great River","The Great River","The Great River","Parth Galen","Parth Galen","Parth Galen","Parth Galen","Parth Galen","Parth Galen","The Breaking Of The Fellowship","The Breaking Of The Fellowship","The Breaking Of The Fellowship","The Breaking Of The Fellowship","The Breaking Of The Fellowship","The Breaking Of The Fellowship","The Departure Of Boromir","The Departure Of Boromir","The Road Goes Ever On…","The Road Goes Ever On…","The Road Goes Ever On…","The Road Goes Ever On…","The Road Goes Ever On…","The Road Goes Ever On…","The Foundations Of Stone","The Foundations Of Stone","The Foundations Of Stone","The Foundations Of Stone","Elven Rope","Elven Rope","The Taming of Sméagol","The Taming of Sméagol","The Uruk-Hai","The Uruk-Hai","The Three Hunters","The Three Hunters","The Three Hunters","On The Trail Of The Uruk-Hai","On The Trail Of The Uruk-Hai","Night Camp At Fangorn","Night Camp At Fangorn","Night Camp At Fangorn","The Riders Of Rohan","The Riders Of Rohan","The Riders Of Rohan","The Fate Of Merry AndPippin","The Fate Of Merry AndPippin","The Fate Of Merry AndPippin","Treebeard","Treebeard","ThePassage Of The Marshes","ThePassage Of The Marshes","The White Rider","The White Rider","The White Rider","The White Rider","The Song Of The Entwives","The Heir Of Númenor","The Heir Of Númenor","The Black Gate IsClosed","The Black Gate IsClosed","Ent Draft","Ent Draft","The King Of The Golden Hall","The King Of The Golden Hall","The King Of The Golden Hall","Simbelmynë on the Burial Mounds","The King's Decision","The King's Decision","The King's Decision","Brego","A Daughter Of Kings","The Forests Of Ithilien","The Forests Of Ithilien","Of Herbs And Stewed Rabbit","Of Herbs And Stewed Rabbit","Dwarf Women","Dwarf Women","One of the Dúnedain","One of the Dúnedain","The Evenstar","The Wolves Of Isengard","The Wolves Of Isengard","The Wolves Of Isengard","Helm's Deep","Isengard Unleashed","Isengard Unleashed","The Windows On The West","The Windows On The West","Sons Of The Steward","The ForbiddenPool","The ForbiddenPool","Aragorn's Return","Aragorn's Return","Aragorn's Return","Entmoot","The GlitteringCaves","The GlitteringCaves","The GlitteringCaves","Don't Be Hasty Master Meriadoc!","Don't Be Hasty Master Meriadoc!","The Host Of The Eldar","The Host Of The Eldar","The Host Of The Eldar","The Battle Of The Hornburg","The Battle Of The Hornburg","The Battle Of The Hornburg","Old Entish","Old Entish","The Breach Of The Deeping Wall","The Breach Of The Deeping Wall","The Entmoot Decides","The Entmoot Decides","The Retreat To The Hornburg","The Retreat To The Hornburg","The Retreat To The Hornburg","Master Peregrin's Plan","Master Peregrin's Plan","Osgiliath","The Last March Of The Ents","The Last March Of The Ents","The Nazgûl Attack","The Nazgûl Attack","Forth Eorlingas","Forth Eorlingas","Forth Eorlingas","The Flooding Of Isengard","The Flooding Of Isengard","The Tales That Really Mattered…","The Tales That Really Mattered…","The Final Tally","The Final Tally","Flotsam And Jetsam","Flotsam And Jetsam","Farewell To Faramir","Farewell To Faramir","The Battle For Middle Earth Is About To Begin","The Battle For Middle Earth Is About To Begin","The Battle For Middle Earth Is About To Begin","Gollum's Plan","Gollum's Plan","The Grey Havens","Journey To TheCross-roads","Journey To TheCross-roads","The Road To Isengard","The Road To Isengard","The Road To Isengard","The Road To Isengard","The Voice Of Saruman","The Voice Of Saruman","The Voice Of Saruman","Return To Edoras","Return To Edoras","Return To Edoras","Return To Edoras","Return To Edoras","Return To Edoras","Gollum's Villany","Gollum's Villany","Eowyn's Dream","ThePalantir","ThePalantir","ThePalantir","ThePalantir","ThePalantir","Minas Tirith","Minas Tirith","The Decline Of Gondor","The Decline Of Gondor","Cross-roads Of The Fallen King","Cross-roads Of The Fallen King","The Deep Breath Before ThePlunge","The Deep Breath Before ThePlunge","Minas Morgul","Minas Morgul","Minas Morgul","Sam's Warning","Sam's Warning","Pippin's Task","The Lighting Of The Beacons","Theoren's Decision","Theoren's Decision","Theoren's Decision","Theoren's Decision","The Fall of Osgiliath","The Fall of Osgiliath","The Stairs OfCirith Ungol","Courage Is The Best Defense","Peregrin Of The Tower Guard","Allegiance To Denethor","TheParting Of Sam & Frodo","TheParting Of Sam & Frodo","The Sacrifice Of Faramir","The Sacrifice Of Faramir","Marshalling At Dunharrow","Marshalling At Dunharrow","Marshalling At Dunharrow","Marshalling At Dunharrow","Anduril - Flame Of The West","Aragorn Takes ThePaths Of The Dead","Aragorn Takes ThePaths Of The Dead","Aragorn Takes ThePaths Of The Dead","Dwimoberg ~ The Haunted Mountain","Dwimoberg ~ The Haunted Mountain","Dwimoberg ~ The Haunted Mountain","The Muster Of Rohan","ThePaths Of The Dead","ThePaths Of The Dead","ThePaths Of The Dead","The Siege Of Gondor","The Siege Of Gondor","TheCorsairs Of Umbar","TheCorsairs Of Umbar","Shelob's Lair","Shelob's Lair","Merry's Simple Courage","Grond ~ The Hammer Of The Underworld","Breaking The Gate Of Gondor","TheChoices Of Master Samwise Gamgee","Denethor's Madness","The Witch King's Hour","The Witch King's Hour","The Ride Of The Rohirrim","ThePyre Of Denethor","ThePyre Of Denethor","A Far Green Country","A Far Green Country","The Black Ships","Victory At Minar Tirith","Victory At Minar Tirith","Victory At Minar Tirith","Oaths Fulfilled","Oaths Fulfilled","The Houses Of Healing","Pippin Looks After Merry","Pippin Looks After Merry","The Tower OfCirith Ungol","The Tower OfCirith Ungol","The Last Debate","The Last Debate","The Last Debate","The Last Debate","Aragorn Masters ThePalantir","In TheCompany Of Orcs","In TheCompany Of Orcs","The Land Of Shadow","The Land Of Shadow","The Mouth Of Sauron","The Mouth Of Sauron","The Mouth Of Sauron","The Mouth Of Sauron","The Mouth Of Sauron","The Black Gate Opens","The Black Gate Opens","The Black Gate Opens","The Black Gate Opens","I Can't Carry It For You… But I Can Carry You","I Can't Carry It For You… But I Can Carry You","The Last Move","Mount Doom","Mount Doom","The Eagles AreComing","TheCrack Of Doom","TheCrack Of Doom","Sauron Defeated","Sauron Defeated","The End Of All Things","The End Of All Things","The Fellowship Reunited","The Fellowship Reunited","The Fellowship Reunited","The Return Of The King","The Return Of The King","Homeward Bound","Homeward Bound","Homeward Bound","The Grey Havens","The Grey Havens","The Grey Havens"],
        "Character" : ["Frodo","Gandalf","Gandalf","Frodo","Gandalf","Merry","Pippin","Sam","Gandalf","Frodo","Gandalf","Gandalf","Frodo","Merry","Pippin","Sam","Frodo","Gandalf","Sam","Frodo","Sam","Gandalf","Frodo","Merry","Pippin","Sam","Frodo","Merry","Pippin","Sam","Aragorn","Frodo","Merry","Pippin","Sam","Aragorn","Frodo","Merry","Pippin","Sam","Aragorn","Frodo","Merry","Aragorn","Frodo","Merry","Pippin","Sam","Gandalf","Aragorn","Merry","Pippin","Sam","Frodo","Gandalf","Sam","Gandalf","Aragorn","Boromir","Aragorn","Aragorn","Boromir","Frodo","Gandalf","Gimli","Legolas","Merry","Pippin","Sam","Aragorn","Frodo","Frodo","Gandalf","Aragorn","Boromir","Gandalf","Gimli","Legolas","Merry","Pippin","Sam","Aragorn","Boromir","Frodo","Gandalf","Gimli","Legolas","Aragorn","Boromir","Frodo","Gandalf","Gimli","Legolas","Merry","Pippin","Sam","Frodo","Gandalf","Gimli","Merry","Pippin","Sam","Aragorn","Boromir","Frodo","Gandalf","Gimli","Legolas","Sam","Aragorn","Boromir","Frodo","Gandalf","Gimli","Legolas","Aragorn","Boromir","Gimli","Legolas","Sam","Aragorn","Boromir","Legolas","Merry","Sam","Frodo","Aragorn","Gimli","Legolas","Merry","Pippin","Sam","Aragorn","Boromir","Frodo","Sam","Aragorn","Boromir","Frodo","Gimli","Legolas","Merry","Aragorn","Boromir","Legolas","Merry","Pippin","Sam","Aragorn","Boromir","Aragorn","Frodo","Gandalf","Gimli","Legolas","Sam","Boromir","Frodo","Gandalf","Sam","Frodo","Sam","Frodo","Sam","Merry","Pippin","Aragorn","Gimli","Legolas","Gimli","Legolas","Legolas","Merry","Pippin","Aragorn","Gimli","Legolas","Aragorn","Gimli","Merry","Merry","Pippin","Frodo","Sam","Aragorn","Gandalf","Gimli","Legolas","Merry","Aragorn","Gandalf","Frodo","Sam","Merry","Pippin","Aragorn","Gandalf","Gimli","Gandalf","Aragorn","Gandalf","Gimli","Aragorn","Aragorn","Frodo","Sam","Frodo","Sam","Aragorn","Gimli","Aragorn","Gimli","Aragorn","Aragorn","Gimli","Legolas","Gimli","Merry","Pippin","Frodo","Sam","Boromir","Frodo","Sam","Aragorn","Gimli","Legolas","Merry","Aragorn","Gimli","Legolas","Merry","Pippin","Aragorn","Gimli","Legolas","Aragorn","Gimli","Legolas","Merry","Pippin","Aragorn","Gimli","Merry","Pippin","Aragorn","Gimli","Legolas","Merry","Pippin","Frodo","Merry","Pippin","Frodo","Sam","Aragorn","Gandalf","Gimli","Merry","Pippin","Frodo","Sam","Gimli","Legolas","Merry","Pippin","Frodo","Sam","Frodo","Gandalf","Sam","Frodo","Sam","Boromir","Frodo","Sam","Gandalf","Gimli","Merry","Pippin","Aragorn","Gandalf","Gimli","Aragorn","Gandalf","Gimli","Legolas","Merry","Pippin","Frodo","Sam","Aragorn","Aragorn","Gandalf","Legolas","Merry","Pippin","Gandalf","Pippin","Gandalf","Pippin","Frodo","Sam","Gandalf","Pippin","Frodo","Gandalf","Sam","Frodo","Sam","Gandalf","Gandalf","Aragorn","Gimli","Legolas","Merry","Gandalf","Pippin","Sam","Gandalf","Pippin","Pippin","Frodo","Sam","Gandalf","Pippin","Aragorn","Gimli","Legolas","Merry","Aragorn","Aragorn","Gimli","Legolas","Aragorn","Gimli","Legolas","Merry","Aragorn","Gimli","Legolas","Gandalf","Pippin","Aragorn","Gimli","Frodo","Sam","Merry","Gandalf","Gandalf","Sam","Pippin","Gandalf","Pippin","Merry","Gandalf","Pippin","Gandalf","Pippin","Gimli","Aragorn","Gimli","Legolas","Aragorn","Gimli","Pippin","Merry","Pippin","Frodo","Sam","Aragorn","Gandalf","Gimli","Legolas","Aragorn","Frodo","Sam","Frodo","Sam","Aragorn","Gandalf","Gimli","Merry","Pippin","Aragorn","Gimli","Legolas","Sam","Frodo","Sam","Aragorn","Frodo","Sam","Pippin","Frodo","Sam","Merry","Pippin","Frodo","Sam","Frodo","Gimli","Merry","Aragorn","Gandalf","Frodo","Pippin","Sam","Frodo","Gandalf","Sam"],
        "Film" : ["The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Fellowship Of The Ring","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Two Towers","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King","The Return Of The King"],
        "Race" : ["Hobbit","Ainur","Ainur","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Ainur","Hobbit","Ainur","Ainur","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Men","Hobbit","Hobbit","Hobbit","Hobbit","Men","Hobbit","Hobbit","Hobbit","Hobbit","Men","Hobbit","Hobbit","Men","Hobbit","Hobbit","Hobbit","Hobbit","Ainur","Men","Hobbit","Hobbit","Hobbit","Hobbit","Ainur","Hobbit","Ainur","Men","Men","Men","Men","Men","Hobbit","Ainur","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Men","Hobbit","Hobbit","Ainur","Men","Men","Ainur","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Men","Men","Hobbit","Ainur","Dwarf","Elf","Men","Men","Hobbit","Ainur","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Hobbit","Ainur","Dwarf","Hobbit","Hobbit","Hobbit","Men","Men","Hobbit","Ainur","Dwarf","Elf","Hobbit","Men","Men","Hobbit","Ainur","Dwarf","Elf","Men","Men","Dwarf","Elf","Hobbit","Men","Men","Elf","Hobbit","Hobbit","Hobbit","Men","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Men","Men","Hobbit","Hobbit","Men","Men","Hobbit","Dwarf","Elf","Hobbit","Men","Men","Elf","Hobbit","Hobbit","Hobbit","Men","Men","Men","Hobbit","Ainur","Dwarf","Elf","Hobbit","Men","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Men","Dwarf","Elf","Dwarf","Elf","Elf","Hobbit","Hobbit","Men","Dwarf","Elf","Men","Dwarf","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Men","Ainur","Dwarf","Elf","Hobbit","Men","Ainur","Hobbit","Hobbit","Hobbit","Hobbit","Men","Ainur","Dwarf","Ainur","Men","Ainur","Dwarf","Men","Men","Hobbit","Hobbit","Hobbit","Hobbit","Men","Dwarf","Men","Dwarf","Men","Men","Dwarf","Elf","Dwarf","Hobbit","Hobbit","Hobbit","Hobbit","Men","Hobbit","Hobbit","Men","Dwarf","Elf","Hobbit","Men","Dwarf","Elf","Hobbit","Hobbit","Men","Dwarf","Elf","Men","Dwarf","Elf","Hobbit","Hobbit","Men","Dwarf","Hobbit","Hobbit","Men","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Men","Ainur","Dwarf","Hobbit","Hobbit","Hobbit","Hobbit","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Men","Hobbit","Hobbit","Ainur","Dwarf","Hobbit","Hobbit","Men","Ainur","Dwarf","Men","Ainur","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Hobbit","Men","Men","Ainur","Elf","Hobbit","Hobbit","Ainur","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Ainur","Hobbit","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Ainur","Ainur","Men","Dwarf","Elf","Hobbit","Ainur","Hobbit","Hobbit","Ainur","Hobbit","Hobbit","Hobbit","Hobbit","Ainur","Hobbit","Men","Dwarf","Elf","Hobbit","Men","Men","Dwarf","Elf","Men","Dwarf","Elf","Hobbit","Men","Dwarf","Elf","Ainur","Hobbit","Men","Dwarf","Hobbit","Hobbit","Hobbit","Ainur","Ainur","Hobbit","Hobbit","Ainur","Hobbit","Hobbit","Ainur","Hobbit","Ainur","Hobbit","Dwarf","Men","Dwarf","Elf","Men","Dwarf","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Men","Ainur","Dwarf","Elf","Men","Hobbit","Hobbit","Hobbit","Hobbit","Men","Ainur","Dwarf","Hobbit","Hobbit","Men","Dwarf","Elf","Hobbit","Hobbit","Hobbit","Men","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Hobbit","Dwarf","Hobbit","Men","Ainur","Hobbit","Hobbit","Hobbit","Hobbit","Ainur","Hobbit"],
        "Words" : [128,197,64,32,12,19,15,7,148,33,60,107,17,53,61,10,139,541,84,43,40,85,37,58,32,48,20,43,14,9,76,68,6,39,30,96,29,28,25,17,33,12,9,53,16,13,12,24,5,48,5,9,34,107,104,63,102,25,39,24,40,220,24,85,38,34,24,18,8,11,3,7,7,12,15,68,47,3,17,10,3,30,61,6,18,19,8,31,31,30,202,52,7,9,11,7,39,349,6,8,10,7,22,5,8,89,37,8,13,45,17,4,83,7,4,26,27,84,7,2,16,149,41,6,49,36,13,81,20,5,1,13,64,103,16,37,79,202,54,48,31,2,2,2,6,18,17,2,72,72,102,59,34,12,15,50,2,9,39,5,46,97,123,181,19,26,59,35,25,6,13,10,68,14,68,24,7,33,16,3,28,36,54,69,68,298,73,63,4,7,226,39,68,63,122,18,151,15,28,59,165,21,22,31,81,87,39,91,3,68,33,6,97,9,45,5,4,8,9,75,8,132,89,64,69,51,5,6,78,13,36,18,7,34,14,24,18,50,37,30,5,12,6,58,29,31,34,1,6,46,23,5,8,15,53,73,21,5,3,1,12,186,35,7,77,56,18,54,30,36,69,11,12,null,18,77,1,22,36,51,3,111,23,20,15,40,21,78,73,46,65,13,20,255,22,135,104,202,36,268,22,30,56,163,75,8,20,5,4,61,30,5,18,15,19,16,34,15,8,9,66,32,43,184,29,59,26,12,21,12,54,42,20,9,6,45,123,21,75,43,32,81,15,21,14,60,1,83,5,21,48,17,48,13,2,9,2,54,17,12,1,6,6,9,15,1,11,16,64,96,82,59,24,2,17,16,46,30,56,23,32,5,1,5,103,16,8,16,44,85,2,9,10,6,7,38,2,1,37,31,4,1,1,45,11,98,2,27,132,42,14]
     },
     "y" : {
        "data" : [
          [3,3,4,5,5,5,5,5,6,7,7,8,9,9,9,9,10,10,10,11,11,12,13,13,13,13,14,14,14,14,15,15,15,15,15,16,16,16,16,16,17,17,17,19,19,19,19,19,20,21,21,21,21,23,23,23,24,25,25,26,27,27,27,27,27,27,27,27,27,28,29,30,30,31,31,31,31,31,31,31,31,32,32,32,32,32,32,33,33,33,33,33,33,33,33,33,34,34,34,34,34,34,35,35,35,35,35,35,35,36,36,36,36,36,36,37,37,37,37,37,38,38,38,38,38,39,41,41,41,41,41,41,42,42,42,42,43,43,43,43,43,43,44,44,44,44,44,44,45,45,46,46,46,46,46,46,1,1,1,1,2,2,3,3,4,4,5,5,5,9,9,10,10,10,11,11,11,12,12,12,13,13,14,14,15,15,15,15,16,17,17,18,18,19,19,20,20,20,22,23,23,23,24,26,28,28,30,30,31,31,32,32,33,34,34,34,35,36,36,40,40,41,42,42,43,43,43,44,45,45,45,47,47,48,48,48,49,49,49,50,50,51,51,52,52,53,53,53,54,54,55,56,56,57,57,58,58,58,59,59,60,60,62,62,63,63,64,64,65,65,65,66,66,null,2,2,3,3,3,3,4,4,4,5,5,5,5,5,5,6,6,7,8,8,8,8,8,11,11,12,12,13,13,14,14,15,15,15,16,16,17,19,20,20,20,20,21,21,23,24,25,26,27,27,28,28,29,29,29,29,30,31,31,31,33,33,33,34,35,35,35,36,36,37,37,38,38,39,40,42,43,44,45,45,46,47,47,49,49,51,53,53,53,55,55,56,57,57,58,58,59,59,59,59,60,62,62,63,63,64,64,64,64,64,65,65,65,65,66,66,67,68,68,69,70,70,71,71,72,72,73,73,73,74,74,75,75,75,76,76,76]
        ],
        "smps" : ["R1","R2","R3","R4","R5","R6","R7","R8","R9","R10","R11","R12","R13","R14","R15","R16","R17","R18","R19","R20","R21","R22","R23","R24","R25","R26","R27","R28","R29","R30","R31","R32","R33","R34","R35","R36","R37","R38","R39","R40","R41","R42","R43","R44","R45","R46","R47","R48","R49","R50","R51","R52","R53","R54","R55","R56","R57","R58","R59","R60","R61","R62","R63","R64","R65","R66","R67","R68","R69","R70","R71","R72","R73","R74","R75","R76","R77","R78","R79","R80","R81","R82","R83","R84","R85","R86","R87","R88","R89","R90","R91","R92","R93","R94","R95","R96","R97","R98","R99","R100","R101","R102","R103","R104","R105","R106","R107","R108","R109","R110","R111","R112","R113","R114","R115","R116","R117","R118","R119","R120","R121","R122","R123","R124","R125","R126","R127","R128","R129","R130","R131","R132","R133","R134","R135","R136","R137","R138","R139","R140","R141","R142","R143","R144","R145","R146","R147","R148","R149","R150","R151","R152","R153","R154","R155","R156","R157","R158","R159","R160","R161","R162","R163","R164","R165","R166","R167","R168","R169","R170","R171","R172","R173","R174","R175","R176","R177","R178","R179","R180","R181","R182","R183","R184","R185","R186","R187","R188","R189","R190","R191","R192","R193","R194","R195","R196","R197","R198","R199","R200","R201","R202","R203","R204","R205","R206","R207","R208","R209","R210","R211","R212","R213","R214","R215","R216","R217","R218","R219","R220","R221","R222","R223","R224","R225","R226","R227","R228","R229","R230","R231","R232","R233","R234","R235","R236","R237","R238","R239","R240","R241","R242","R243","R244","R245","R246","R247","R248","R249","R250","R251","R252","R253","R254","R255","R256","R257","R258","R259","R260","R261","R262","R263","R264","R265","R266","R267","R268","R269","R270","R271","R272","R273","R274","R275","R276","R277","R278","R279","R280","R281","R282","R283","R284","R285","R286","R287","R288","R289","R290","R291","R292","R293","R294","R295","R296","R297","R298","R299","R300","R301","R302","R303","R304","R305","R306","R307","R308","R309","R310","R311","R312","R313","R314","R315","R316","R317","R318","R319","R320","R321","R322","R323","R324","R325","R326","R327","R328","R329","R330","R331","R332","R333","R334","R335","R336","R337","R338","R339","R340","R341","R342","R343","R344","R345","R346","R347","R348","R349","R350","R351","R352","R353","R354","R355","R356","R357","R358","R359","R360","R361","R362","R363","R364","R365","R366","R367","R368","R369","R370","R371","R372","R373","R374","R375","R376","R377","R378","R379","R380","R381","R382","R383","R384","R385","R386","R387","R388","R389","R390","R391","R392","R393","R394","R395","R396","R397","R398","R399","R400","R401","R402","R403","R404","R405","R406","R407","R408","R409","R410","R411"],
        "vars" : ["Chapter"]
     }
  }
  
  
  <-- Create the configuration for the graph -->
  var config = {
     "backgroundImage":"https://www.canvasxpress.org/assets/images/lotr-background.png",
     "backgroundType":"image",
     "colorBy":"Character",
     "colors":[
        "rgb(45,24,18)",
        "rgb(95,50,31)",
        "rgb(22,25,16)",
        "rgb(56,54,25)",
        "rgb(165,113,76)",
        "rgb(116,50,36)",
        "rgb(170,99,47)",
        "rgb(195,152,60)",
        "rgb(0,0,0)"
     ],
     "dotplotOutlineThreshold":"1",
     "dotplotType":"movement",
     "fontName":"Bilbo",
     "fonts":[
        "Bilbo"
     ],
     "graphOrientation":"horizontal",
     "graphType":"Dotplot",
     "groupingFactors":[
        "Character"
     ],
     "images":[
        "https://www.canvasxpress.org/assets/images/Frodo.png",
        "https://www.canvasxpress.org/assets/images/Gandalf.png",
        "https://www.canvasxpress.org/assets/images/Merry.png",
        "https://www.canvasxpress.org/assets/images/Pippin.png",
        "https://www.canvasxpress.org/assets/images/Sam.png",
        "https://www.canvasxpress.org/assets/images/Aragorn.png",
        "https://www.canvasxpress.org/assets/images/Boromir.png",
        "https://www.canvasxpress.org/assets/images/Gimli.png",
        "https://www.canvasxpress.org/assets/images/Legolas.png"
     ],
     "layoutAdjust":"true",
     "layoutBoxShow":"false",
     "layoutTopology":"1X3",
     "legendKeyBackgroundBorderColor":"rgba(255,255,255,0)",
     "legendKeyBackgroundColor":"rgba(255,255,255,0)",
     "marginBottom":"80",
     "marginLeft":"60",
     "marginRight":"60",
     "marginTop":"180",
     "maxFontSize":"40",
     "objectColorTransparency":0.85,
     "segregateSamplesBy":[
        "Film"
     ],
     "showLegend":"false",
     "sizeBy":"Words",
     "sizeByContinuous":"true",
     "sizeByShowLegend":"false",
     "sizes":[
        "5",
        "10",
        "15",
        "25",
        "35",
        "40",
        "50",
        "60",
        "70",
        "90",
        "120"
     ],
     "smpLabelImage":"true",
     "smpLabelImageRound":"true",
     "smpLabelScaleFontFactor":0.9,
     "title":"Words per Chapter by Character",
     "xAxis2Show":"false",
     "xAxisShow":"false",
     "xAxisTicksMajorShow":"false",
     "xAxisTicksMinorShow":"false"
  }
  
  
  <-- Event used to create graph (optional) -->
  var events = {
   "mousemove": function(o, e, t) {
      if (o.objectType && o.objectType == 'Smp') {
        var sum = t.sum(o.x.Words);
        var str = "<b>" + o.display + "</b><br><b>Words: </b>" + sum + "<br><b>Chapters: </b>" + o.x.Words.length;
        t.showInfoSpan(e, str);
      } else if (o.y) {
        var str = "<b>" + o.y.Character + "</b><br><b>Words: </b>" + o.y.Words + "<br><b>Chapter: </b> (" + o.y.data + ") " + o.y['Chapter Name'] + "<br><b>Film :</b>" + o.y.Film;
        t.showInfoSpan(e, str);
      }
    }
  };
  

  <!-- Call the CanvasXpress function to create the graph -->
  var cX = new CanvasXpress("canvasId", data, config, events);


</script>
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-lotr-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
x=read.table("https://www.canvasxpress.org/data/cX-lotr-smp.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  data=y,
  smpAnnot=x,
  backgroundImage="https://www.canvasxpress.org/assets/images/lotr-background.png",
  backgroundType="image",
  colorBy="Character",
  colors=list("rgb(45,24,18)", "rgb(95,50,31)", "rgb(22,25,16)", "rgb(56,54,25)", "rgb(165,113,76)", "rgb(116,50,36)", "rgb(170,99,47)", "rgb(195,152,60)", "rgb(0,0,0)"),
  dotplotOutlineThreshold=1,
  dotplotType="movement",
  fontName="Bilbo",
  fonts=list("Bilbo"),
  graphOrientation="horizontal",
  graphType="Dotplot",
  groupingFactors=list("Character"),
  images=list("https://www.canvasxpress.org/assets/images/Frodo.png", "https://www.canvasxpress.org/assets/images/Gandalf.png", "https://www.canvasxpress.org/assets/images/Merry.png", "https://www.canvasxpress.org/assets/images/Pippin.png", "https://www.canvasxpress.org/assets/images/Sam.png", "https://www.canvasxpress.org/assets/images/Aragorn.png", "https://www.canvasxpress.org/assets/images/Boromir.png", "https://www.canvasxpress.org/assets/images/Gimli.png", "https://www.canvasxpress.org/assets/images/Legolas.png"),
  layoutAdjust=TRUE,
  layoutBoxShow=FALSE,
  layoutTopology="1X3",
  legendKeyBackgroundBorderColor="rgba(255,255,255,0)",
  legendKeyBackgroundColor="rgba(255,255,255,0)",
  marginBottom=80,
  marginLeft=60,
  marginRight=60,
  marginTop=180,
  maxFontSize=40,
  objectColorTransparency=0.85,
  segregateSamplesBy=list("Film"),
  showLegend=FALSE,
  sizeBy="Words",
  sizeByContinuous=TRUE,
  sizeByShowLegend=FALSE,
  sizes=list(5, 10, 15, 25, 35, 40, 50, 60, 70, 90, 120),
  smpLabelImage=TRUE,
  smpLabelImageRound=TRUE,
  smpLabelScaleFontFactor=0.9,
  title="Words per Chapter by Character",
  xAxis2Show=FALSE,
  xAxisShow=FALSE,
  xAxisTicksMajorShow=FALSE,
  xAxisTicksMinorShow=FALSE
)