Tufte.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dojox.charting.themes.Tufte"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dojox.charting.themes.Tufte"] = true;
  8. dojo.provide("dojox.charting.themes.Tufte");
  9. dojo.require("dojox.charting.Theme");
  10. /*
  11. A charting theme based on the principles championed by
  12. Edward Tufte. By Alex Russell, Dojo Project Lead.
  13. */
  14. dojox.charting.themes.Tufte = new dojox.charting.Theme({
  15. chart: {
  16. stroke: null,
  17. fill: "inherit"
  18. },
  19. plotarea: {
  20. // stroke: { width: 0.2, color: "#666666" },
  21. stroke: null,
  22. fill: "transparent"
  23. },
  24. axis: {
  25. stroke: {width: 1, color: "#ccc"},
  26. majorTick:{
  27. color: "black",
  28. width: 1,
  29. length: 5
  30. },
  31. minorTick: {
  32. color: "#666",
  33. width: 1,
  34. length: 2
  35. },
  36. font: "normal normal normal 8pt Tahoma",
  37. fontColor: "#999"
  38. },
  39. series: {
  40. outline: null,
  41. stroke: {width: 1, color: "black"},
  42. // fill: "#3b444b",
  43. fill: new dojo.Color([0x3b, 0x44, 0x4b, 0.85]),
  44. font: "normal normal normal 7pt Tahoma",
  45. fontColor: "#717171"
  46. },
  47. marker: {
  48. stroke: {width: 1, color: "black"},
  49. fill: "#333",
  50. font: "normal normal normal 7pt Tahoma",
  51. fontColor: "black"
  52. },
  53. colors:[
  54. dojo.colorFromHex("#8a8c8f"),
  55. dojo.colorFromHex("#4b4b4b"),
  56. dojo.colorFromHex("#3b444b"),
  57. dojo.colorFromHex("#2e2d30"),
  58. dojo.colorFromHex("#000000")
  59. ]
  60. });
  61. }