@ -38,12 +38,13 @@ this.value=value;
this . isDefault = isDefault ;
this . isDefault = isDefault ;
}
}
function dimensionProperty ( name , caption , isMeasure , isMandatory )
function dimensionProperty ( name , caption , explanation , isMeasure , isMandatory )
{
{
this . name = name ;
this . name = name ;
this . caption = caption ;
this . caption = caption ;
this . isMeasure = isMeasure ;
this . isMeasure = isMeasure ;
this . isMandatory = isMandatory ;
this . isMandatory = isMandatory ;
this . explanation = explanation ;
this . getValueResultset = function ( ) {
this . getValueResultset = function ( ) {
var valueOptions = [ ] ;
var valueOptions = [ ] ;
var optionCounter = 0 ;
var optionCounter = 0 ;
@ -159,14 +160,14 @@ function prepareForm(vizTypeUniquename,vizTypeProperties)
if ( vizTypeUniquename == vizTypeProperties [ k ] . typeUniquename )
if ( vizTypeUniquename == vizTypeProperties [ k ] . typeUniquename )
{
{
var isMeasure = ( vizTypeProperties [ k ] . groupUniquename == "MEASURE" ) ? true : false ;
var isMeasure = ( vizTypeProperties [ k ] . groupUniquename == "MEASURE" ) ? true : false ;
var myProp = new dimensionProperty ( vizTypeProperties [ k ] . propUniquename , vizTypeProperties [ k ] . caption , isMeasure , vizTypeProperties [ k ] . isMandatory ) ;
var myProp = new dimensionProperty ( vizTypeProperties [ k ] . propUniquename , vizTypeProperties [ k ] . caption , vizTypeProperties [ k ] . explanation , isMeasure , vizTypeProperties [ k ] . isMandatory ) ;
chartProperties . push ( myProp ) ;
chartProperties . push ( myProp ) ;
propertyCounter ++ ;
propertyCounter ++ ;
}
}
}
}
return chartProperties ;
return chartProperties ;
}
}
/ *
function prepareBarXForm ( )
function prepareBarXForm ( )
{
{
var chartProperties = [ ] ;
var chartProperties = [ ] ;
@ -218,6 +219,7 @@ function prepareLineForm_alt()
return chartProperties ;
return chartProperties ;
}
}
* /
function fillDataSelectionForm ( formDiv )
function fillDataSelectionForm ( formDiv )
{
{
formDivElem = document . getElementById ( formDiv ) ;
formDivElem = document . getElementById ( formDiv ) ;
@ -419,6 +421,9 @@ function renderDimensionField(dimensionProperty)
label . classList . add ( "label" ) ;
label . classList . add ( "label" ) ;
label . classList . add ( "is-required" ) ;
label . classList . add ( "is-required" ) ;
label . classList . add ( "is-small" ) ;
label . classList . add ( "is-small" ) ;
label . classList . add ( "has-tooltip-right" ) ;
label . setAttribute ( "data-tooltip" , commonChartProperty . explanation ) ;
const textnode = document . createTextNode ( dimensionProperty . caption ) ;
const textnode = document . createTextNode ( dimensionProperty . caption ) ;
label . appendChild ( textnode ) ;
label . appendChild ( textnode ) ;
labelElem . appendChild ( label ) ;
labelElem . appendChild ( label ) ;
@ -549,6 +554,9 @@ function renderChartPropertyField(commonChartProperty)
label . classList . add ( "label" ) ;
label . classList . add ( "label" ) ;
label . classList . add ( "is-required" ) ;
label . classList . add ( "is-required" ) ;
label . classList . add ( "is-small" ) ;
label . classList . add ( "is-small" ) ;
label . classList . add ( "has-tooltip-right" ) ;
label . setAttribute ( "data-tooltip" , commonChartProperty . explanation ) ;
const textnode = document . createTextNode ( commonChartProperty . caption ) ;
const textnode = document . createTextNode ( commonChartProperty . caption ) ;
label . appendChild ( textnode ) ;
label . appendChild ( textnode ) ;
labelElem . appendChild ( label ) ;
labelElem . appendChild ( label ) ;
@ -556,7 +564,6 @@ function renderChartPropertyField(commonChartProperty)
//input:
//input:
const inputFieldElem = document . createElement ( "div" ) ;
const inputFieldElem = document . createElement ( "div" ) ;
inputFieldElem . classList . add ( "field" ) ;
inputFieldElem . classList . add ( "field" ) ;
//inputFieldElem.classList.add("is-active");
const inputParaElem = document . createElement ( "p" ) ;
const inputParaElem = document . createElement ( "p" ) ;
inputParaElem . classList . add ( "control-new" ) ;
inputParaElem . classList . add ( "control-new" ) ;
const inputElem = document . createElement ( "div" ) ;
const inputElem = document . createElement ( "div" ) ;
@ -571,7 +578,6 @@ function renderChartPropertyField(commonChartProperty)
const selElem = document . createElement ( "select" ) ;
const selElem = document . createElement ( "select" ) ;
selElem . name = commonChartProperty . name ;
selElem . name = commonChartProperty . name ;
selElem . id = commonChartProperty . name ;
selElem . id = commonChartProperty . name ;
selElem . title = commonChartProperty . explanation ;
//selElem.style="width:50px";
//selElem.style="width:50px";
if ( commonChartProperty . variableName == "" )
if ( commonChartProperty . variableName == "" )
{
{
@ -597,7 +603,6 @@ function renderChartPropertyField(commonChartProperty)
textAreaElem . disabled = "disabled" ;
textAreaElem . disabled = "disabled" ;
textAreaElem . readonly = "readonly" ;
textAreaElem . readonly = "readonly" ;
}
}
textAreaElem . title = commonChartProperty . explanation ;
textAreaElem . name = commonChartProperty . name ;
textAreaElem . name = commonChartProperty . name ;
textAreaElem . id = commonChartProperty . name ;
textAreaElem . id = commonChartProperty . name ;
textAreaElem . value = commonChartProperty . defaultValue ;
textAreaElem . value = commonChartProperty . defaultValue ;
@ -627,7 +632,6 @@ function renderChartPropertyField(commonChartProperty)
rangeElem . step = 50 ;
rangeElem . step = 50 ;
* /
* /
rangeElem . title = commonChartProperty . explanation ;
rangeElem . name = commonChartProperty . name ;
rangeElem . name = commonChartProperty . name ;
rangeElem . id = commonChartProperty . name ;
rangeElem . id = commonChartProperty . name ;
rangeElem . value = commonChartProperty . defaultValue ;
rangeElem . value = commonChartProperty . defaultValue ;
@ -640,14 +644,17 @@ function renderChartPropertyField(commonChartProperty)
default :
default :
//Einfaches Texteingabefeld:
//Einfaches Texteingabefeld:
const inpElem = document . createElement ( "input" ) ;
const inpElem = document . createElement ( "input" ) ;
inpElem . type = ( commonChartProperty . propValueType == "integer" ) ? "NUMBER" : "TEXT" ;
inpElem . type = "TEXT" ;
if ( commonChartProperty . propValueType == "integer" )
inpElem . type = "NUMBER" ;
if ( commonChartProperty . inputType == "COLOR" )
inpElem . type = "color" ;
inpElem . size = 5 ;
inpElem . size = 5 ;
if ( commonChartProperty . variableName == "" )
if ( commonChartProperty . variableName == "" )
{
{
inpElem . disabled = "disabled" ;
inpElem . disabled = "disabled" ;
inpElem . readonly = "readonly" ;
inpElem . readonly = "readonly" ;
}
}
inpElem . title = commonChartProperty . explanation ;
inpElem . name = commonChartProperty . name ;
inpElem . name = commonChartProperty . name ;
inpElem . id = commonChartProperty . name ;
inpElem . id = commonChartProperty . name ;
inpElem . value = commonChartProperty . defaultValue ;
inpElem . value = commonChartProperty . defaultValue ;
@ -1187,7 +1194,7 @@ function makeDot(chartDivElem,selectionRs) {
x : categoryDim
x : categoryDim
} ) ;
} ) ;
marksArray [ 1 ] = Plot . ruleY ( [ 0 ] ) ;
marksArray [ 1 ] = Plot . ruleY ( [ 0 ] ) ;
marksArray [ 2 ] = Plot . ruleX ( [ 0 ] ) ;
//marksArray[2]=Plot.ruleX([0]);
var options = getChartOptions ( categoryDim , "" , measureDim , marksArray , true ) ;
var options = getChartOptions ( categoryDim , "" , measureDim , marksArray , true ) ;