On Fri, Feb 15, 2019 at 3:17 AM SHUANG SU <[email protected]> wrote:
> > > Hi Hen, > > Thank you so much for the detailed checking. > > There is one more question about this file: > > > > <1> src/util/number.js > > > > > This file says this: > > * @see < > https://github.com/mbostock/d3/blob/master/src/arrays/quantile.js> > > * @see <http://en.wikipedia.org/wiki/Quantile> > > Assuming no code was copied, this seems fine. If code was copied from > > either, then there is licensing to include (be that BSD for d3 or > CC-BY-SA > > for Quantile, the latter being a problem for us licensing wise). > > The method "quantile" in this file is only copied from the code of "d3" > [1], which is under BSD. > But the original code in "d3" [1] seems to use a formula on Wikipedia [2]. > So is it OK to use this "d3" code in "echarts" and only embed the BSD > license of "d3" in the file "src/util/number.js" ? > > > [1]. > https://github.com/d3/d3/blob/9cc9a875e636a1dcf36cc1e07bdf77e1ad6e2c74/src/arrays/quantile.js > [2]. https://en.wikipedia.org/wiki/Quantile . Search "R-7" in this page, > get the formula. > > Yes that's okay, treat that as you do other BSD licensed code copied from d3. The concept 'copied' from Wikipedia is the idea that a piece of mathematics represents; the formula itself doesn't have copyrightable expression and there's nothing else that appears to be being copied over from Wikipedia. Hen
