1--- 2title: Generating Charts 3--- 4 5# Generating Charts 6 7## Generate 8 9The input for this is the cldr\-staging/production file, and the output is in github cldr\-staging. **(If for the development version, the input is main or the maint branch, but we should change that.)** 10 111. Make sure the settings and VM arguments are right for where you are in the release: 12 1. **Start, Mid\-release, Prefinal release,** or **Final release** (see below) 132. Run GenerateAllCharts. The results for each will be in ... cldr\-staging/docs/charts/by\_type/names.currency.html and so on. 143. Spot\-check for sanity. 15 1. Start from the main page (eg cldr\-staging/docs/charts/index.html), and click on each of those links. 16 2. On each of the subpages, take the first chart on each page, recursively. 17 3. Use the "Index" link to go back up (not the back button), and make sure it goes to the right version of the page. 184. Check into github on cldr\-staging 19 20## Start Release 21 221. Make sure the version (eg **99**) is right in ToolConstants 23 1. Make sure the *last* number (eg **99\.0**) is in CLDR\_VERSIONS 24 2. Set DEFAULT\_CHART\_VERSION \= "99"; 252. Add an new folder with that number, such as cldr\-staging/docs/charts/**99** 263. Create the archive ([Creating the Archive](https://cldr.unicode.org/development/creating-the-archive)) with at least the last release (if you don't have it already) 274. **Use the same VM arguments as Mid\-Release** 28 29## Mid\-release 30 311. Use the VM arguements 32 1. \-DCHART\_VERSION\=**99** 33 2. \-DCHART\_STATUS\=**beta** // \=*default*, uses trunk, calls it β 34 35## Prefinal Release 36 371. VM Arguments 38 1. \-DCHART\_VERSION\=**99** 39 2. \-DCHART\_STATUS\=**trunk** (uses trunk, no β. Used at the end of the release, but before the final data is in cldr\-archive) 402. In the printout from delta\_summary.txt, there is a listing of the sizes at the top 41 1. Something like the following: 42 1. \# dir file added deleted changed total 43 1. TOTAL 30,276 3,601 10,909 2,153,094 44 2. Add those new figures to the release page 45 46## Final Release 47 481. Make sure the settings are: 49 1. \-DCHART\_VERSION\=**99** 50 2. \-DCHART\_STATUS\=**release** (only uses the cldr\-archive, no β) 512. Change the page <http://cldr.unicode.org/index/charts> to add the new release 523. Check the redirection links on [test\-chart\-links](https://cldr.unicode.org/development/cldr-big-red-switch/test-chart-links). 534. On index.html; open it, and fix the version (eg to 25β \=\> 25\) 54 55## Modifying the chart programs 56 57The chart programs have grown over time, and need some cleanup. For example, the supplemental charts duplicate code that is now in SupplementalDataInfo. 58 59### ShowLanguages. 60 61The messages that they use are in a file util/data/chart\_messages.html. The right cell contains the key, which is extracted by lines like: 62 63 PrintWriter pw \= new PrintWriter(new FormattedFileWriter(index, "Zone \\u2192 Tzid", null)); 64 65The key will be zone\_tzid, in this case. 66 67