You are here

README.txt in Charts 5.0.x

Installation using Composer (recommended)
========================================

If you use Composer to manage dependencies, edit "/composer.json" as follows.

  1. Run "composer require --prefer-dist composer/installers" to ensure that you
     have the "composer/installers" package installed. This package facilitates
     the installation of packages into directories other than "/vendor" (e.g.
     "/libraries") using Composer.

  2. Add the following to the "installer-paths" section of "composer.json":

     "libraries/{$name}": ["type:drupal-library"],

  3. Add the following to the "repositories" section of "composer.json":

        {
            "type": "package",
            "package": {
                "name": "highcharts/highcharts",
                "version": "8.2.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "highcharts"
                },
                "dist": {
                    "url": "https://code.highcharts.com/8.2.2/highcharts.js",
                    "type": "file"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "highcharts/more",
                "version": "8.2.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "highcharts_more"
                },
                "dist": {
                    "url": "https://code.highcharts.com/8.2.2/highcharts-more.js",
                    "type": "file"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "highcharts/exporting",
                "version": "8.2.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "highcharts_exporting"
                },
                "dist": {
                    "url": "https://code.highcharts.com/8.2.2/modules/exporting.js",
                    "type": "file"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "highcharts/export-data",
                "version": "8.2.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "highcharts_export-data"
                },
                "dist": {
                    "url": "https://code.highcharts.com/8.2.2/modules/export-data.js",
                    "type": "file"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "highcharts/accessibility",
                "version": "8.2.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "highcharts_accessibility"
                },
                "dist": {
                    "url": "https://code.highcharts.com/8.2.2/modules/accessibility.js",
                    "type": "file"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        },
        {
            "type": "package",
                "package": {
                "name": "highcharts/3d",
                "version": "8.2.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "highcharts_3d"
                },
                "dist": {
                    "url": "https://code.highcharts.com/8.2.2/highcharts-3d.js",
                    "type": "file"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        }

4. Run "composer require --prefer-dist highcharts/highcharts:8.2.2 highcharts/more:8.2.2 highcharts/exporting:8.2.2 highcharts/export-data:8.2.2 highcharts/accessibility:8.2.2 highcharts/3d:8.2.2"
- you should find that new directories have been created under "/libraries"

File

modules/charts_highcharts/README.txt
View source
  1. Installation using Composer (recommended)
  2. ========================================
  3. If you use Composer to manage dependencies, edit "/composer.json" as follows.
  4. 1. Run "composer require --prefer-dist composer/installers" to ensure that you
  5. have the "composer/installers" package installed. This package facilitates
  6. the installation of packages into directories other than "/vendor" (e.g.
  7. "/libraries") using Composer.
  8. 2. Add the following to the "installer-paths" section of "composer.json":
  9. "libraries/{$name}": ["type:drupal-library"],
  10. 3. Add the following to the "repositories" section of "composer.json":
  11. {
  12. "type": "package",
  13. "package": {
  14. "name": "highcharts/highcharts",
  15. "version": "8.2.2",
  16. "type": "drupal-library",
  17. "extra": {
  18. "installer-name": "highcharts"
  19. },
  20. "dist": {
  21. "url": "https://code.highcharts.com/8.2.2/highcharts.js",
  22. "type": "file"
  23. },
  24. "require": {
  25. "composer/installers": "~1.0"
  26. }
  27. }
  28. },
  29. {
  30. "type": "package",
  31. "package": {
  32. "name": "highcharts/more",
  33. "version": "8.2.2",
  34. "type": "drupal-library",
  35. "extra": {
  36. "installer-name": "highcharts_more"
  37. },
  38. "dist": {
  39. "url": "https://code.highcharts.com/8.2.2/highcharts-more.js",
  40. "type": "file"
  41. },
  42. "require": {
  43. "composer/installers": "~1.0"
  44. }
  45. }
  46. },
  47. {
  48. "type": "package",
  49. "package": {
  50. "name": "highcharts/exporting",
  51. "version": "8.2.2",
  52. "type": "drupal-library",
  53. "extra": {
  54. "installer-name": "highcharts_exporting"
  55. },
  56. "dist": {
  57. "url": "https://code.highcharts.com/8.2.2/modules/exporting.js",
  58. "type": "file"
  59. },
  60. "require": {
  61. "composer/installers": "~1.0"
  62. }
  63. }
  64. },
  65. {
  66. "type": "package",
  67. "package": {
  68. "name": "highcharts/export-data",
  69. "version": "8.2.2",
  70. "type": "drupal-library",
  71. "extra": {
  72. "installer-name": "highcharts_export-data"
  73. },
  74. "dist": {
  75. "url": "https://code.highcharts.com/8.2.2/modules/export-data.js",
  76. "type": "file"
  77. },
  78. "require": {
  79. "composer/installers": "~1.0"
  80. }
  81. }
  82. },
  83. {
  84. "type": "package",
  85. "package": {
  86. "name": "highcharts/accessibility",
  87. "version": "8.2.2",
  88. "type": "drupal-library",
  89. "extra": {
  90. "installer-name": "highcharts_accessibility"
  91. },
  92. "dist": {
  93. "url": "https://code.highcharts.com/8.2.2/modules/accessibility.js",
  94. "type": "file"
  95. },
  96. "require": {
  97. "composer/installers": "~1.0"
  98. }
  99. }
  100. },
  101. {
  102. "type": "package",
  103. "package": {
  104. "name": "highcharts/3d",
  105. "version": "8.2.2",
  106. "type": "drupal-library",
  107. "extra": {
  108. "installer-name": "highcharts_3d"
  109. },
  110. "dist": {
  111. "url": "https://code.highcharts.com/8.2.2/highcharts-3d.js",
  112. "type": "file"
  113. },
  114. "require": {
  115. "composer/installers": "~1.0"
  116. }
  117. }
  118. }
  119. 4. Run "composer require --prefer-dist highcharts/highcharts:8.2.2 highcharts/more:8.2.2 highcharts/exporting:8.2.2 highcharts/export-data:8.2.2 highcharts/accessibility:8.2.2 highcharts/3d:8.2.2"
  120. - you should find that new directories have been created under "/libraries"